GCC warning in back branches

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: GCC warning in back branches
Date: 2021-02-15 01:15:51
Message-ID: CA+hUKGJRcwvK86Uf5t-FrTekZjqHtpv3u=3MuBg8Zw8R933Mqg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
0001-Fix-compiler-warning-in-back-branches.patch text/x-patch 922 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message tsunakawa.takay@fujitsu.com 2021-02-15 01:19:34 RE: [PoC] Non-volatile WAL buffer
Previous Message Peter Geoghegan 2021-02-15 01:14:47 Re: GlobalVisIsRemovableFullXid() vs GlobalVisCheckRemovableXid()