Re: gcc 15 "array subscript 0" warning at level -O3 - Mailing list pgsql-hackers

From Andres Freund
Subject Re: gcc 15 "array subscript 0" warning at level -O3
Date
Msg-id pjk43pvje7pfx6a54gxorswsostlpk4beuuvwsh3ggpey7ynzy@nhrg6khl4kmg
Whole thread Raw
In response to Re: gcc 15 "array subscript 0" warning at level -O3  (jian he <jian.universality@gmail.com>)
List pgsql-hackers
Hi,

On 2025-07-02 22:13:17 +0800, jian he wrote:
> On Thu, Jun 5, 2025 at 3:00 AM Andres Freund <andres@anarazel.de> wrote:
> > I've been once more annoyed by this warning. Here's a prototype for the
> > approach outlined above.
> >
> 
> I can confirm the warning disappears when using gcc-14.0 compile
> source code with the attached patch.
> I didn't review it though.
> I didn’t find this in the CommitFest, so I added an entry [1] to make sure it
> doesn’t get forgotten...

Thanks. Pushed it now and closed the CF entry.

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: gcc 15 "array subscript 0" warning at level -O3
Next
From: Andres Freund
Date:
Subject: Re: Some ExecSeqScan optimizations