Re: List of hostaddrs not supported
Heikki Linnakangas <hlinnaka@iki.fi>
From: Heikki Linnakangas <hlinnaka@iki.fi>
To: Jeff Janes <jeff.janes@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>,
"Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>,
Mithun Cy <mithun.cy@enterprisedb.com>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2017-06-09T18:52:46Z
Lists: pgsql-hackers
On 06/09/2017 05:47 PM, Jeff Janes wrote: > Your commit to fix this part, 76b11e8a43eca4612d, is giving me compiler > warnings: > > fe-connect.c: In function 'connectDBStart': > fe-connect.c:1625: warning: 'ret' may be used uninitialized in this function > > gcc version 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC) Oh. Apparently that version of gcc doesn't take it for granted that the switch-statement covers all the possible cases. I've added a dummy initialization, to silence it. Thanks, and let me know if it didn't help. - Heikki
Commits
-
Fix check for empty hostname.
- 4d06f1f858d0 10.0 landed
-
Allow multiple hostaddrs to go with multiple hostnames.
- 7b02ba62e9ff 10.0 landed
-
Silence warning about uninitialized 'ret' variable on some compilers.
- 493490cbcb19 10.0 landed
-
Give a better error message on invalid hostaddr option.
- 76b11e8a43ec 10.0 landed