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

From Peter Geoghegan
Subject Re: Setting -Werror in CFLAGS
Date
Msg-id CAEYLb_UM_DH0zXPo_mHSzJND49EeUqYFPZvesxRgkgrJ5hiy0A@mail.gmail.com
Whole thread Raw
In response to Re: Setting -Werror in CFLAGS  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On 4 January 2012 18:44, Robert Haas <robertmhaas@gmail.com> wrote:
> On Tue, Jan 3, 2012 at 9:23 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> I'm also less than thrilled with the idea that whatever the gcc boys
>> decide to make a warning tomorrow will automatically become a MUST FIX
>> NOW for us.
>
> I'm not thrilled about that either.  Especially since they seem to be
> adding more and more warnings that are harder and harder to work
> around for issues that are less and less important.  Unimportant
> warnings that are easily avoidable are not so bad, but...

I'd have a certain amount of sympathy for that view. It took building
with Clang to notice that we incorrectly used one enum rvalue to
assign to a variable of another enum type, which I thought was a
little bit surprising; I'd have expected GCC to catch that one, since
it is pretty likely to be valid.

--
Peter Geoghegan       http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training and Services


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Setting -Werror in CFLAGS
Next
From: Jim Nasby
Date:
Subject: Re: Page Checksums + Double Writes