OSDN Git Service

Suppress possibly-uninitialized-variable warnings from gcc 4.5.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 22 Jan 2011 22:56:42 +0000 (17:56 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 22 Jan 2011 22:56:42 +0000 (17:56 -0500)
commite2627258c3cc43b8b00c5c29c35933a33259e718
tree6956cca30250ffabc71022459aad636347db1a40
parent116ce2f4d01b929cc7c3bd0f7e6bca631f83da50
Suppress possibly-uninitialized-variable warnings from gcc 4.5.

It appears that gcc 4.5 can issue such warnings for whole structs, not
just scalar variables as in the past.  Refactor some pg_dump code slightly
so that the OutputContext local variables are always initialized, even
if they won't be used.  It's cheap enough to not be worth worrying about.
src/bin/pg_dump/pg_backup_archiver.c
src/bin/pg_dump/pg_backup_archiver.h