pgsql: Suppress some compiler warnings in recent commits. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Suppress some compiler warnings in recent commits.
Date
Msg-id E1Pmwjy-0001iQ-DT@gemulon.postgresql.org
Whole thread Raw
Responses Re: pgsql: Suppress some compiler warnings in recent commits.
List pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=375e5b0a687570eb41fb9e9fda9e5d6992fccffa

Modified Files
--------------
src/backend/commands/extension.c |   31 ++++++++++++-------------------
src/backend/commands/tablecmds.c |   37 ++++++++++++++++++-------------------
2 files changed, 30 insertions(+), 38 deletions(-)


pgsql-committers by date:

Previous
From: Bernd Helmle
Date:
Subject: Re: pgsql: Extend ALTER TABLE to allow Foreign Keys to be added without ini
Next
From: Simon Riggs
Date:
Subject: Re: pgsql: Suppress some compiler warnings in recent commits.