#num line directives suppress warnings in C code?

Ian Lance Taylor iant@google.com
Wed May 15 15:26:00 GMT 2013


On Tue, May 14, 2013 at 8:52 PM, Dara Hazeghi <dhazeghi@yahoo.com> wrote:
> I've been dealing with a fair amount preprocessed C code, which includes directives that look like:
> #0 "/usr/local/gcctrunk/lib/gcc/x86_64unknownlinuxgnu/4.9.0/include/stddef.h" 3
>
>
> The problem I've encountered is that when I compile files with such code in them using gcc, the usual warnings from the compiler are suppressed.  I'm guessing that this is intended behavior?  If so, is there a way to disable it (re-enabling the warnings)?

The -Wsystem-headers option.

Ian



More information about the Gcc-help mailing list