]> granicus.if.org Git - postgresql/commit
Avoid "variable might be clobbered by longjmp" warning.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 28 Mar 2013 17:19:49 +0000 (13:19 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 28 Mar 2013 17:19:49 +0000 (13:19 -0400)
commit58bc48179b3cad0793ae20b002d60289c8bf0b9b
tree1cf7efc700ca2de94e9301a5e09d2082858e8661
parent473ab40c8bb3fcb1a7645f6a7443a0424d70fbaf
Avoid "variable might be clobbered by longjmp" warning.

On older-model gcc, the original coding of UTILITY_BEGIN_QUERY() can
draw this error because of multiple assignments to _needCleanup.
Rather than mark that variable volatile, we can suppress the warning
by arranging to have just one unconditional assignment before PG_TRY.
src/backend/tcop/utility.c