This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: RFC: Silence pedantic warnings at header file level
- From: Christopher Faylor <cgf at redhat dot com>
- To: cygwin-patches at cygwin dot com
- Date: Mon, 4 Mar 2002 17:46:35 -0500
- Subject: Re: RFC: Silence pedantic warnings at header file level
- References: <20020304224414.13778.qmail@web14510.mail.yahoo.com>
- Reply-to: cygwin-patches at cygwin dot com
On Tue, Mar 05, 2002 at 09:44:14AM +1100, Danny Smith wrote:
>GCC 3.x has a a new pragma that causes the rest of the code in
>the current file to be treated as if it came from a system header
>
>Putting this right after the header guard of runtime and w32api headers
>would silence all the "long long" and bitfield pedantic warnings that
>still occur. It would also allow cleanup of the anonymous union
>__extension__ business.
>
>#if defined __GNUC__ && __GNUC__ >= 3
>#pragma GCC system_header
>#endif
>
>
>This approach is used in GCC's STL headers.
>
>Any comments
Looks good to me. Do you really need the defined __GNUC__ part, though?
Don't unknown symbols default to zero?
cgf