5 ms·
Does C have the ability to locally silence warnings in particular sections of code?
by MBlume 13y ago
Does C have the ability to locally silence warnings in particular sections of code?
- kibibu 13y agoYes, but it's compiler dependent. For GCC, see http://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Pragmas.html http://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Pragmas.html
- JoeAltmaier 13y agoUseful, 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.