Jump to content

Warnings on compiling, can i Hide them?


Recommended Posts

There's always solution for all warnings (that are not due to external library usage, in which case, you can supress them: http://stackoverflow.com/questions/7159348/disable-single-warning-error). Some are a bit dumb, but they still point to potental problems with your code.

Warnings are not compile errors, but they can be logic errors. If you have a warning-free source, and you make a mistake, you'll see it right away. Ignoring all warnings is not a good idea.

  • Metin2 Dev 1
Link to comment
Share on other sites

Think , i was talking about the problems you told , not serious problems, problems that after installation, without any changes on code, existing! :)

The assumption that YMIR made proper working code is not correct either, some are definitely not serious, but there are actual logic issues (which got ignored by them, too). Warnings can also be about the performance of the code - and if you are going to supress each warning, then your better off fixing them....

 

Add in makefile -w at CFLAGS and delete -Wall.

Can we at least agree on the fact that that's a bad idea? (terrible, imho, but no need to agree on that level)

#pragma is not used only on VC++, even though for gcc it's a different syntax. You can use: http://stackoverflow.com/questions/3378560/how-to-disable-gcc-warnings-for-a-few-lines-of-code to disable warnings for specific parts of code. I'm not aware that anything that works with clang, but there might be.

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.