Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yeah warnings are out of control. New architectures and platforms bring up new things to be concerned about, thus new warnings. But old code quits working solely because of the build issue you mention.

Wonder what the solution would be.



Does C have the ability to locally silence warnings in particular sections of code?


Yes, but it's compiler dependent.

For GCC, see http://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Pragmas.html


Useful, but no solution to the issue of new warnings. You'd have to be able to say "I just want THESE warning" to guarantee code continues to compile.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: