Re: additional GCC warning flags

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Neil Conway <neilc(at)samurai(dot)com>, pgsql-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: additional GCC warning flags
Date: 2004-10-18 17:37:35
Message-ID: 200410181937.35410.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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/

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Richard Sydney-Smith 2004-10-18 17:49:15 Where is the link to cygwin?
Previous Message Tom Lane 2004-10-18 17:37:11 Re: Win32 psql fix