From mboxrd@z Thu Jan 1 00:00:00 1970 From: Branko Cibej To: egcs@cygnus.com, egcs-patches@cygnus.com Subject: Re: Desire gcc option to skip warnings in standard headers Date: Mon, 29 Jun 1998 08:41:00 -0000 Message-id: <35978752.88CC4049@hermes.si> References: <9806261352.AA18188@ipl.rpi.edu> X-SW-Source: 1998-06/msg01054.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. Here's a simple patch that inhibits warnings generated in system headers unless '-Wsystem-headers' is specified. It doesn't attempt to handle warnings generated by cccp or cpplib yet. Comments, anybody? Is this the right way to do it? -- Branko Cibej HERMES SoftLab, Litijska 51, 1000 Ljubljana, Slovenia phone: (++386 61) 186 53 49 fax: (++386 61) 186 52 70