]> granicus.if.org Git - postgresql/commit
Silence warning about uninitialized 'ret' variable on some compilers.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 9 Jun 2017 18:50:35 +0000 (21:50 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 9 Jun 2017 18:50:35 +0000 (21:50 +0300)
commit493490cbcb19c5232038827b114a4ec72aa3e731
treeb23ec7fb6a1392d9f927ab1f0eb6b71c293fa8bd
parente11e24b1ed619ca329a532e5e5ae8b4e5e728f71
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
src/interfaces/libpq/fe-connect.c