Re: New string-truncation warnings from GCC 15

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Peter Eisentraut <peter(at)eisentraut(dot)org>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: New string-truncation warnings from GCC 15
Date: 2025-09-17 21:00:42
Message-ID: 1791528.1758142842@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andres Freund <andres(at)anarazel(dot)de> writes:
> On 2025-09-17 16:38:56 -0400, Tom Lane wrote:
>> Oh! Hmm... I am not sure that we want to commit to being -Wextra
>> clean across-the-board.

> We've been -Wextra clean for years, with a few temporary exceptions. IME a lot
> of warnings added to -Wextra in one year, get promoted to -Wall a few releases
> later. I found plenty mistakes with -Wextra stuff, so I'd be sad if we decided
> we're not trying to fix them...

Well, we should either commit to it (and put -Wextra into our
standard switches) or not.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David G. Johnston 2025-09-17 21:03:01 REPACK and naming
Previous Message Andres Freund 2025-09-17 20:54:16 Re: New string-truncation warnings from GCC 15