Uninitialized variable introduced in 3217327053638085d24dd4d276e7c1f7ac2c4c6b

From: Mark Dilger <hornschnorter(at)gmail(dot)com>
To: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Uninitialized variable introduced in 3217327053638085d24dd4d276e7c1f7ac2c4c6b
Date: 2017-04-06 14:59:44
Message-ID: 857878DA-6BE4-4F23-9178-BAD34B7CE96D@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter,

Can you perhaps initialize the variable 'address' to suppress the warning? Thanks.

Mark Dilger

tablecmds.c:5984:6: warning: variable 'address' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
if (generatedEl)
^~~~~~~~~~~
tablecmds.c:5999:9: note: uninitialized use occurs here
return address;
^~~~~~~
tablecmds.c:5984:2: note: remove the 'if' if its condition is always true
if (generatedEl)
^~~~~~~~~~~~~~~~
tablecmds.c:5936:2: note: variable 'address' is declared here
ObjectAddress address;
^

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kevin Grittner 2017-04-06 15:02:18 Re: [HACKERS] [GSoC] Push-based query executor discussion
Previous Message Tom Lane 2017-04-06 14:55:53 Re: [HACKERS] [GSoC] Push-based query executor discussion