This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
compiler warning in selected parts of the file?
- To: gcc-bugs at gcc dot gnu dot org
- Subject: compiler warning in selected parts of the file?
- From: "Marty Leisner" <mleisner at eng dot mc dot xerox dot com>
- Date: Fri, 13 Jul 2001 15:17:08 -0400
This isn't really a bug, its a feature request (and an
RFC).
I'm writing a device driver for linux, and I wanted to turn on
-Wmissing-prototypes to warn about the code I'm writing...
instead I got lots of warnings from the inline functions
in linux headers (which I don't care about).
I'm not thrilled about the linux header files...and I don't
like to include useless headers to get rid of the compiler
warnings...
What I want to do is turn on warnings AFTER my system
includes file...I think Visual C does this with a #pragma.
I know of the historic dislike for #pragmas, but this is
useful problem -- turn on certain warnings in parts of your
file.
marty mleisner@eng.mc.xerox.com
Don't confuse education with schooling.
Milton Friedman to Yogi Berra