Re: Setting -Werror in CFLAGS - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Setting -Werror in CFLAGS
Date
Msg-id CA+TgmoZ_bv0PvZuU8RC25wpW5wt+YihOEi5s4AYSqEJFsYx8ZA@mail.gmail.com
Whole thread Raw
In response to Setting -Werror in CFLAGS  (Peter Geoghegan <peter@2ndquadrant.com>)
Responses Re: Setting -Werror in CFLAGS
List pgsql-hackers
On Tue, Jan 3, 2012 at 7:39 PM, Peter Geoghegan <peter@2ndquadrant.com> wrote:
> Yes, I know that these only appeared in GCC 4.6+ and as such are a
> relatively recent phenomenon, but there has been some effort to
> eliminate them, and if I could get a non-hacked -Werror build I'd feel
> happy enough about excluding them as already outlined.

I just do this:

echo COPT=-Werror > src/Makefile.custom

...which seems to work reasonably well.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: 16-bit page checksums for 9.2
Next
From: Robert Haas
Date:
Subject: Re: Re: [COMMITTERS] pgsql: pg_regress: Replace exit_nicely() with exit() plus atexit() hook