Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group