This is the mail archive of the gcc-bugs@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]

compiler warning in selected parts of the file?



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


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