Re: Add -Wold-style-definition to CFLAGS? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Add -Wold-style-definition to CFLAGS?
Date
Msg-id 19295.1589065916@sss.pgh.pa.us
Whole thread Raw
In response to Re: Add -Wold-style-definition to CFLAGS?  (Andres Freund <andres@anarazel.de>)
Responses Re: Add -Wold-style-definition to CFLAGS?
Re: Add -Wold-style-definition to CFLAGS?
Re: Add -Wold-style-definition to CFLAGS?
List pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> On 2020-05-09 14:15:01 -0400, Tom Lane wrote:
>> Andres Freund <andres@anarazel.de> writes:
>>> Since gcc has a warning detecting such definition, I think we ought to
>>> automatically add it when available?

>> +1

> Any opinion about waiting for branching or not?

I'd be OK with pushing it now, but I dunno about other people.

If we do want to push this sort of thing now, the nearby changes
to enable fallthrough warnings should go in too.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: [PATCH] Incremental sort (was: PoC: Partial sort)
Next
From: Michael Paquier
Date:
Subject: Re: Add -Wold-style-definition to CFLAGS?