GCC warning in back branches - Mailing list pgsql-hackers

From Thomas Munro
Subject GCC warning in back branches
Date
Msg-id CA+hUKGJRcwvK86Uf5t-FrTekZjqHtpv3u=3MuBg8Zw8R933Mqg@mail.gmail.com
Whole thread Raw
Responses Re: GCC warning in back branches
List pgsql-hackers
Hi,

guc.c: In function ‘RestoreGUCState’:
guc.c:9455:4: error: ‘varsourceline’ may be used uninitialized in this
function [-Werror=maybe-uninitialized]
 9455 |    set_config_sourcefile(varname, varsourcefile, varsourceline);
      |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I propose the attached.

Attachment

pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: GlobalVisIsRemovableFullXid() vs GlobalVisCheckRemovableXid()
Next
From: "tsunakawa.takay@fujitsu.com"
Date:
Subject: RE: [PoC] Non-volatile WAL buffer