Re: additional GCC warning flags - Mailing list pgsql-patches

From Peter Eisentraut
Subject Re: additional GCC warning flags
Date
Msg-id 200410181937.35410.peter_e@gmx.net
Whole thread Raw
In response to additional GCC warning flags  (Neil Conway <neilc@samurai.com>)
List pgsql-patches
Neil Conway wrote:
> This patch adds code to "configure" to check if GCC supports the
> following warning flags: -Wdeclaration-after-statement (GCC 3.4+),
> -Wold-style-definition (GCC 3.4+), and -Wendif-labels (GCC 3.3+). Any
> of these options that are supported by $CC are added to $CFLAGS.

Can't you write one macro that takes the option to be tested as
argument?  For example like
PGAC_PROG_CC_WARNING([-Wmissing-declarations]).

--
Peter Eisentraut
http://developer.postgresql.org/~petere/


pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: Win32 psql fix
Next
From: Peter Eisentraut
Date:
Subject: Re: pg_config-zh_TW.po for 8.0