]> granicus.if.org Git - postgresql/commit
Suppress some compiler warnings in recent commits.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 8 Feb 2011 23:12:17 +0000 (18:12 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 8 Feb 2011 23:12:17 +0000 (18:12 -0500)
commit375e5b0a687570eb41fb9e9fda9e5d6992fccffa
tree285c5d6b2a3ccf74393c77c14edda857fbc82345
parent0bc0bd07d41169d6de513967615ad9cb3d0f322e
Suppress some compiler warnings in recent commits.

Older versions of gcc tend to throw "variable might be clobbered by
`longjmp' or `vfork'" warnings whenever a variable is assigned in more than
one place and then used after the end of a PG_TRY block.  That's reasonably
easy to work around in execute_extension_script, and the overhead of
unconditionally saving/restoring the GUC variables seems unlikely to be a
serious concern.

Also clean up logic in ATExecValidateConstraint to make it easier to read
and less likely to provoke "variable might be used uninitialized in this
function" warnings.
src/backend/commands/extension.c
src/backend/commands/tablecmds.c