Re: Compile warnings in dbcommands.c building with meson

2024-01-14 Thread jian he
Hi. one more feedback. I tested the original repo setup, but it does not generate a warning on my local setup. meson setup --reconfigure ${BUILD} \ -Dprefix=${PG_PREFIX} \ -Dpgport=5463 \ -Dplpython=enabled \ -Dcassert=true \ -Dtap_tests=enabled \ -Dicu=enabled \ -Ddebug=true \ -Dnls=disabled

Re: Compile warnings in dbcommands.c building with meson

2024-01-12 Thread jian he
On Fri, Jan 12, 2024 at 8:03 PM Alvaro Herrera wrote: > > On 2024-Jan-12, jian he wrote: > > > I saw it sometimes, sometimes not. > > Now I think the reason is: > > it will appear when you do `-Dbuildtype=release`. > > > > but it will not occur when I do: > > `-Dbuildtype=debug` > > > > my

Re: Compile warnings in dbcommands.c building with meson

2024-01-12 Thread Alvaro Herrera
On 2024-Jan-12, jian he wrote: > I saw it sometimes, sometimes not. > Now I think the reason is: > it will appear when you do `-Dbuildtype=release`. > > but it will not occur when I do: > `-Dbuildtype=debug` > > my current meson version is 1.3.1, my ninja version is 1.10.1. Hmm, but why

Re: Compile warnings in dbcommands.c building with meson

2024-01-11 Thread jian he
On Fri, Jan 12, 2024 at 1:05 AM Magnus Hagander wrote: > > On Wed, Jan 10, 2024 at 1:16 PM Aleksander Alekseev > wrote: > > > > Hi, > > > > > When building current head on debian bullseye I get this compile warning: > > > > > > In file included from ../src/backend/commands/dbcommands.c:20: > > >

Re: Compile warnings in dbcommands.c building with meson

2024-01-11 Thread Magnus Hagander
On Wed, Jan 10, 2024 at 1:16 PM Aleksander Alekseev wrote: > > Hi, > > > When building current head on debian bullseye I get this compile warning: > > > > In file included from ../src/backend/commands/dbcommands.c:20: > > ../src/backend/commands/dbcommands.c: In function ‘createdb’: > >

Re: Compile warnings in dbcommands.c building with meson

2024-01-10 Thread Aleksander Alekseev
Hi, > When building current head on debian bullseye I get this compile warning: > > In file included from ../src/backend/commands/dbcommands.c:20: > ../src/backend/commands/dbcommands.c: In function ‘createdb’: > ../src/include/postgres.h:104:9: warning: ‘src_hasloginevt’ may be > used

Compile warnings in dbcommands.c building with meson

2024-01-10 Thread Magnus Hagander
When building current head on debian bullseye I get this compile warning: In file included from ../src/backend/commands/dbcommands.c:20: ../src/backend/commands/dbcommands.c: In function ‘createdb’: ../src/include/postgres.h:104:9: warning: ‘src_hasloginevt’ may be used uninitialized in this