This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: How to suppress warnings ?


Hi Loïc,

This experiment worked for me:
--- pickle/head.h ---
#pragma dont know
--- end-of-file ---

--- foo.cpp ---
#include <head.h>
--- end-of-file ---

Compilation:

g++ -c -idirafter `pwd`/pickle \
 -Wall -Wunknown-pragmas -Wno-system-headers \
 foo.cpp

(No error/warning messages.)

...versus...

g++ -c -idirafter `pwd`/pickle \
 -Wall -Wunknown-pragmas -Wsystem-headers \
 foo.cpp

(Warning message about ignored #pragma.)


HTH,
--Eljay


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