This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Compiler Directives for Suppressing Warnings
- From: MSUdom5 <dom5 at msstate dot edu>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 9 Jan 2007 14:28:27 -0800 (PST)
- Subject: 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.