mirror of
https://github.com/postgres/postgres.git
synced 2026-06-09 00:32:10 -04:00
Silence warning about uninitialized 'ret' variable on some compilers.
If the compiler doesn't notice that the switch-statement handles all possible values of the enum, it might complain that 'ret' is being used without initialization. Jeff Janes reported that on gcc 4.4.7. Discussion: https://www.postgresql.org/message-id/CAMkU=1x31RvP+cpooFbmc8K8nt-gNO8woGFhXcgQYYZ5ozYpFA@mail.gmail.com
This commit is contained in:
parent
e11e24b1ed
commit
493490cbcb
1 changed files with 1 additions and 0 deletions
|
|
@ -1668,6 +1668,7 @@ connectDBStart(PGconn *conn)
|
|||
snprintf(portstr, sizeof(portstr), "%d", thisport);
|
||||
|
||||
/* Use pg_getaddrinfo_all() to resolve the address */
|
||||
ret = 1;
|
||||
switch (ch->type)
|
||||
{
|
||||
case CHT_HOST_NAME:
|
||||
|
|
|
|||
Loading…
Reference in a new issue