This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: How to suppress warnings ?
- From: John Love-Jensen <eljay at adobe dot com>
- To: <ltrochet at ina dot fr>, <gcc-help at gcc dot gnu dot org>
- Date: Wed, 02 Jul 2003 08:57:57 -0500
- Subject: 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