Re: Compiling warnings on old GCC - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Compiling warnings on old GCC
Date
Msg-id 3830161.1699282064@sss.pgh.pa.us
Whole thread Raw
In response to Re: Compiling warnings on old GCC  (Richard Guo <guofenglinux@gmail.com>)
List pgsql-hackers
Richard Guo <guofenglinux@gmail.com> writes:
> On Mon, Nov 6, 2023 at 2:51 PM David Rowley <dgrowleyml@gmail.com> wrote:
>> There's some relevant discussion in
>> https://postgr.es/m/flat/20220602024243.GJ29853%40telsasoft.com

> It seems that the controversial '-Og' coupled with the old GCC version
> (4.8) makes it not worth fixing.  So please ignore this thread.

Although nobody tried to enunciate a formal policy in the other thread,
I think where we ended up is that we'd consider suppressing warnings
seen with -Og, but only with reasonably-modern compiler versions.
For LTS compilers we are only going to care about warnings seen with
production flags (i.e., -O2 or better).

            regards, tom lane



pgsql-hackers by date:

Previous
From: Aleksander Alekseev
Date:
Subject: Re: XID formatting and SLRU refactorings (was: Add 64-bit XIDs into PostgreSQL 15)
Next
From: David Steele
Date:
Subject: Re: Add recovery to pg_control and remove backup_label