Re: build gcc warning

2022-12-27 Thread Tom Lane
Andres Freund writes: > On 2022-12-27 01:55:06 -0500, Tom Lane wrote: >> A couple of buildfarm animals are warning about that too ... but >> only a couple. > I'm a bit confused by gcc getting confused here - the condition for > sub_rteperminfos getting initialized and used are the same. Most of t

Re: build gcc warning

2022-12-27 Thread Andres Freund
Hi, On 2022-12-27 01:55:06 -0500, Tom Lane wrote: > Pavel Stehule writes: > > I got new warning > > analyze.c: In function ‘transformStmt’: > > analyze.c:550:21: warning: ‘sub_rteperminfos’ may be used uninitialized > > [-Wmaybe-uninitialized] > > A couple of buildfarm animals are warning about

Re: build gcc warning

2022-12-26 Thread Tom Lane
Pavel Stehule writes: > I got new warning > analyze.c: In function ‘transformStmt’: > analyze.c:550:21: warning: ‘sub_rteperminfos’ may be used uninitialized > [-Wmaybe-uninitialized] A couple of buildfarm animals are warning about that too ... but only a couple. regards,

build gcc warning

2022-12-26 Thread Pavel Stehule
Hi I got new warning -o session.bc session.c analyze.c: In function ‘transformStmt’: analyze.c:550:21: warning: ‘sub_rteperminfos’ may be used uninitialized [-Wmaybe-uninitialized] 550 | List *sub_rteperminfos; | ^~~~ <-->if (isGeneralSelect