Jump to content

clang warning


Go to solution Solved by Jira,

Recommended Posts

hello

dose any one know how can i stop clang warning in compiler ?

 

.png

 

I tried this solution but it didn't work

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wpadded"
// your code for which the warning gets suppressed
#pragma clang diagnostic pop

that is my makefile from game

https://pastebin.com/Etk8Nt14

 

 

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

On 7/27/2022 at 6:33 PM, Jira said:

just add -Wno-invalid-source-encoding

ex) 

CFLAGS = -m32 -g -Wall -O2 -pipe -fexceptions -std=c++17 -fno-strict-aliasing -pthread -D_THREAD_SAFE -DNDEBUG -Wno-invalid-source-encoding

 

thx bro its works good for encoding
but can i stop it for all warning ? like that warning

.png

 

 

----

 

edit

 

thx i used  -Wno-unused-private-field

  • kekw 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.