compiler warning in selected parts of the file?
Marty Leisner
mleisner@eng.mc.xerox.com
Fri Jul 13 12:17:00 GMT 2001
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
More information about the Gcc-bugs
mailing list