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

2025-04-25 Thread Andres Freund
Hi, On 2025-04-25 13:37:15 -0400, Tom Lane wrote: > Whilst poking at Erik Rijkers' nearby report, I found that > Fedora 42's gcc 15.0.1 will produce this complaint if you > select optimization level -O3: > > In file included from ../../../../src/include/access/htup_details.h:22, >

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

2025-04-25 Thread Tom Lane
I wrote: > Anybody have an idea about how to silence it more effectively? > There are going to be more people seeing this as gcc 15 propagates. Meh. I tried this: diff --git a/src/pl/plpgsql/src/pl_exec.c b/src/pl/plpgsql/src/pl_exec.c index bb99781c56e..ea489db89c9 100644 --- a/src/pl/plpgsql/s