Re: Setting -Werror in CFLAGS

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Peter Geoghegan <peter(at)2ndquadrant(dot)com>
Cc: PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Setting -Werror in CFLAGS
Date: 2012-01-04 01:52:49
Message-ID: CA+TgmoZ_bv0PvZuU8RC25wpW5wt+YihOEi5s4AYSqEJFsYx8ZA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Jan 3, 2012 at 7:39 PM, Peter Geoghegan <peter(at)2ndquadrant(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2012-01-04 02:00:01 Re: Re: [COMMITTERS] pgsql: pg_regress: Replace exit_nicely() with exit() plus atexit() hook
Previous Message Robert Haas 2012-01-04 01:49:42 Re: 16-bit page checksums for 9.2