Re: [PATCH] glib.h + gcc-3.0 + -pedantic



On 23 Jun 2001 13:47:25 -0400 Owen Taylor <otaylor redhat com> wrote:

> A possibly better way of going about this that was suggested
> is to use:
> 
>  #pragma GCC system_header
> 
> For the glib header files - this turns off a lot of warnings.
> After all, GLib _does_ turn off the GCC extensions when
> compiling on something other than GCC, so there's no
> point in being told about them when compiling some project
> that uses GLib. 
> 
> You might want to experiment with this.

That was also suggested by a gcc team member. I just thought
you wouldn't like entirely disabling any warnings. But you're
right - glib is mature enough to use this approach.

Regards,
--Daniel




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]