diff options
| author | Tom Lane | 2007-05-04 02:01:02 +0000 |
|---|---|---|
| committer | Tom Lane | 2007-05-04 02:01:02 +0000 |
| commit | b407bd749df4451f0827bdfc8eb43d0529aabc8c (patch) | |
| tree | d111a1d85f64b0688ccc477c4d60af75212db0b4 /src/include/postgres.h | |
| parent | 211e8da7eac500cffcbbea482eab964ac9c3a094 (diff) | |
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.
Diffstat (limited to 'src/include/postgres.h')
| -rw-r--r-- | src/include/postgres.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/postgres.h b/src/include/postgres.h index f86f1bbeee..d7d1403654 100644 --- a/src/include/postgres.h +++ b/src/include/postgres.h @@ -694,8 +694,9 @@ extern DLLIMPORT bool assert_enabled; Trap(!(condition), "BadState") #endif /* USE_ASSERT_CHECKING */ -extern int ExceptionalCondition(char *conditionName, char *errorType, - char *fileName, int lineNumber); +extern int ExceptionalCondition(const char *conditionName, + const char *errorType, + const char *fileName, int lineNumber); /* ---------------------------------------------------------------- * Section 4: genbki macros used by catalog/pg_xxx.h files |
