A few fixups in error handling: mark pg_re_throw() as noreturn for gcc,

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 79ca7ffeb6a43c1f2af80ead6a2dffd120594cf9
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-05-04T02:01:02Z
Releases: 8.3.0
A few fixups in error handling: mark pg_re_throw() as noreturn for gcc,
and for other compilers, insert a dummy exit() call so that they understand
PG_RE_THROW() doesn't return.  Insert fflush(stderr) in ExceptionalCondition,
per recent buildfarm evidence that that might not happen automatically on some
platforms.  And const-ify ExceptionalCondition's declaration while at it.

Files

PathChange+/−
src/backend/utils/error/assert.c modified +10 −4
src/backend/utils/error/elog.c modified +11 −1
src/include/postgres.h modified +4 −3
src/include/utils/elog.h modified +11 −2