This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Compiler Directives for Suppressing Warnings


I have a very large codebase that I've updated for compilation with GCC 4.1. 
Everything compiles and runs fine, but I get lots of nit-picky warnings.  I
don't want to disable all warnings, but would like the compiler to suppress
warnings for specific lines or blocks of code.  Is there a compiler
directive that accomplishes this?  I know there are many commandline options
(-W options) that suppress specific types of warnings, but I'd like to
suppress warnings in certain parts of my code.  Does GCC offer a way to do
this?
-- 
View this message in context: http://www.nabble.com/Compiler-Directives-for-Suppressing-Warnings-tf2949290.html#a8248058
Sent from the gcc - Help mailing list archive at Nabble.com.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]