How can one disable gcc warnings inline with c code?

Ben Davis bnd25@cam.ac.uk
Wed Mar 19 15:50:00 GMT 2003


On Wednesday 19 March 2003 3:16 pm, Jamie Risk wrote:
> A few system libraries are giving me grief by causing numerous warnings in
> otherwise 'clean' or warning free code.  Without disabling the warning
> checking at the command line is there a way to disable the warnings inline?

Have you tried -Wno-system-headers?

Ben



More information about the Gcc-help mailing list