diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2000-01-13 18:26:18 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2000-01-13 18:26:18 +0000 |
commit | 46a28f1b14ee9d42cdec82d24c962a1274bbd076 (patch) | |
tree | 64249d62a4def09c270f338ca0ac681905d85470 /src/include/utils/elog.h | |
parent | bfa3b59d2501e7b9d8e4480a1ad7feb3cdeaa703 (diff) |
Fixed everything in and surrounding createdb and dropdb to make it more
error-proof. Rearranged some old code and removed dead sections.
Diffstat (limited to 'src/include/utils/elog.h')
-rw-r--r-- | src/include/utils/elog.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/include/utils/elog.h b/src/include/utils/elog.h index e69ef11d7a3..54239b45482 100644 --- a/src/include/utils/elog.h +++ b/src/include/utils/elog.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: elog.h,v 1.13 1999/09/27 15:48:12 vadim Exp $ + * $Id: elog.h,v 1.14 2000/01/13 18:26:17 petere Exp $ * *------------------------------------------------------------------------- */ @@ -22,7 +22,13 @@ #define LOG DEBUG #define NOIND (-3) /* debug message, don't indent as far */ +#ifndef __GNUC__ extern void elog(int lev, const char *fmt, ...); +#else +/* This extension allows gcc to check the format string for consistency with + the supplied arguments. */ +extern void elog(int lev, const char *fmt, ...) __attribute__ ((format (printf, 2, 3))); +#endif #ifndef PG_STANDALONE extern int DebugFileOpen(void); |