]> granicus.if.org Git - postgresql/commit
Fix portability breakage in pg_dump.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 11 Jan 2015 18:28:26 +0000 (13:28 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 11 Jan 2015 18:28:26 +0000 (13:28 -0500)
commit44096f1c6644a97c92da6c96dc1d8d4e200d4a38
treea3e4ba78bd48063d218592cb07c94128738dad52
parent8883bae33b55a52105b1b58d0e42c5a6bda09627
Fix portability breakage in pg_dump.

Commit 0eea8047bf0e15b402b951e383e39236bdfe57d5 introduced some overly
optimistic assumptions about what could be in a local struct variable's
initializer.  (This might in fact be valid code according to C99, but I've
got at least one pre-C99 compiler that falls over on those nonconstant
address expressions.)  There is no reason whatsoever for main()'s workspace
to not be static, so revert long_options[] to a static and make the
DumpOptions struct static as well.
src/bin/pg_dump/pg_backup.h
src/bin/pg_dump/pg_backup_archiver.c
src/bin/pg_dump/pg_dump.c