Cyclone_DE 9 Posted July 19, 2015 Share Posted July 19, 2015 Hello community, i was working on source of my gamefile a lot lately, and i have a question, Can i hide those Warnings? I care only for "Errors" as long there is no solution for these warnings. Thanks for your time! Link to comment Share on other sites More sharing options...
Think 117 Posted July 19, 2015 Share Posted July 19, 2015 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. 1 Link to comment Share on other sites More sharing options...
Cyclone_DE 9 Posted July 19, 2015 Author Share Posted July 19, 2015 Think , i was talking about the problems you told , not serious problems, problems that after installation, without any changes on code, existing! Link to comment Share on other sites More sharing options...
Ira™ 41 Posted July 19, 2015 Share Posted July 19, 2015 (edited) #pragma is used only in visual studio. Add in makefile -w at CFLAGS and delete -Wall. Edited July 19, 2015 by Ira™ Link to comment Share on other sites More sharing options...
Cyclone_DE 9 Posted July 19, 2015 Author Share Posted July 19, 2015 (edited) Hello Ira, thanks for your replying. Uhm, do you mean the Makefile on /root/workspace/Server or on /root/workspace/Server/game? "Thanks a lot Thanks a lot! Fixed it! Edited July 19, 2015 by Cyclone_DE Solved Link to comment Share on other sites More sharing options...
Think 117 Posted July 19, 2015 Share Posted July 19, 2015 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 More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now