Silence warning about uninitialized 'ret' variable on some compilers.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 493490cbcb19c5232038827b114a4ec72aa3e731
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2017-06-09T18:50:35Z
Releases: 10.0
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

Files

PathChange+/−
src/interfaces/libpq/fe-connect.c modified +1 −0

Discussion