[HACKERS] Uninitialized variable introduced in 3217327053638085d24dd4d276e7c1f7ac2c4c6b - Mailing list pgsql-hackers

From Mark Dilger
Subject [HACKERS] Uninitialized variable introduced in 3217327053638085d24dd4d276e7c1f7ac2c4c6b
Date
Msg-id 857878DA-6BE4-4F23-9178-BAD34B7CE96D@gmail.com
Whole thread Raw
Responses [HACKERS] Re: Uninitialized variable introduced in3217327053638085d24dd4d276e7c1f7ac2c4c6b  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
List 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;       ^




pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] [GSoC] Push-based query executor discussion
Next
From: Kevin Grittner
Date:
Subject: Re: [HACKERS] [GSoC] Push-based query executor discussion