Re: gcc 15 "array subscript 0" warning at level -O3

From: Andres Freund <andres(at)anarazel(dot)de>
To: jian he <jian(dot)universality(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: gcc 15 "array subscript 0" warning at level -O3
Date: 2025-07-09 23:21:29
Message-ID: pjk43pvje7pfx6a54gxorswsostlpk4beuuvwsh3ggpey7ynzy@nhrg6khl4kmg
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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(at)anarazel(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2025-07-09 23:34:21 Re: Some ExecSeqScan optimizations
Previous Message Andres Freund 2025-07-09 23:20:20 Re: gcc 15 "array subscript 0" warning at level -O3