Re: gcc build warnings at -O3

2024-02-08 Thread Alexander Korotkov
On Wed, Feb 7, 2024 at 10:31 PM Andres Freund wrote: > On 2024-01-11 21:55:19 -0500, Tom Lane wrote: > > Bharath Rupireddy writes: > > > Hi, I'm seeing a compiler warning with CFLAGS -O3 but not with -O2. > > > > > In file included from dbcommands.c:20: > > > dbcommands.c: In function ‘createdb’:

gcc build warnings at -O3

2024-02-07 Thread Andres Freund
Hi, On 2024-01-11 21:55:19 -0500, Tom Lane wrote: > Bharath Rupireddy writes: > > Hi, I'm seeing a compiler warning with CFLAGS -O3 but not with -O2. > > > In file included from dbcommands.c:20: > > dbcommands.c: In function ‘createdb’: > > ../../../src/include/postgres.h:104:16: warning: ‘src_h