Re: build gcc warning - Mailing list pgsql-hackers

From Andres Freund
Subject Re: build gcc warning
Date
Msg-id 20221227221723.t7iidqhmx4mlbrxl@awork3.anarazel.de
Whole thread Raw
In response to Re: build gcc warning  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: build gcc warning
List pgsql-hackers
Hi,

On 2022-12-27 01:55:06 -0500, Tom Lane wrote:
> Pavel Stehule <pavel.stehule@gmail.com> 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.

I'm a bit confused by gcc getting confused here - the condition for
sub_rteperminfos getting initialized and used are the same. Most of the time
the maybe-uninitialized logic seems to be better than this.

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: recovery modules
Next
From: Tom Lane
Date:
Subject: Removing redundant grouping columns