From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Myers To: egcs@cygnus.com Subject: Re: Desire gcc option to skip warnings in standard headers Date: Wed, 01 Jul 1998 20:15:00 -0000 Message-id: <359AB0B8.3590109D@cygnus.com> References: <9806261352.AA18188.cygnus.egcs@ipl.rpi.edu> X-SW-Source: 1998-07/msg00052.html Frederick W. Wheeler wrote: > > It would be very convenient for me to have a gcc command-line option > or #pragma to prevent the printing of warnings in the standard > headers. Warnings could begin to be issued at the first line that is > not #include . It seems to me that this would be > relatively easy to implement. Note that not all warnings are undesirable even from very bad headers. In particular, a warning that a macro is being redefined helps protect you when non-system-header code defines a macro that is (re)defined in a system header. System headers don't tend to do this to themselves, so emitting the warning anyway would usually be a Good Thing. Nathan Myers ncm@cantrip.org