diff options
author | Andres Freund <andres@anarazel.de> | 2014-12-08 20:28:09 +0100 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2014-12-19 14:27:45 +0100 |
commit | 9959abb0122ca2b0e4817e20954e3083c90becdc (patch) | |
tree | ec57de08de28ed2cbf7f1a69d495e63a31d1a070 /src | |
parent | 5b516835897f2a487eedacdb605ac40d52f6b484 (diff) | |
download | postgresql-9959abb0122ca2b0e4817e20954e3083c90becdc.tar.gz postgresql-9959abb0122ca2b0e4817e20954e3083c90becdc.zip |
Define Assert() et al to ((void)0) to avoid pedantic warnings.
gcc's -Wempty-body warns about the current usage when compiling
postgres without --enable-cassert.
Diffstat (limited to 'src')
-rw-r--r-- | src/include/c.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/c.h b/src/include/c.h index ce38d78736f..93d6924c5c4 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -578,12 +578,12 @@ typedef NameData *Name; */ #ifndef USE_ASSERT_CHECKING -#define Assert(condition) +#define Assert(condition) ((void)true) #define AssertMacro(condition) ((void)true) -#define AssertArg(condition) -#define AssertState(condition) +#define AssertArg(condition) ((void)true) +#define AssertState(condition) ((void)true) #define AssertPointerAlignment(ptr, bndr) ((void)true) -#define Trap(condition, errorType) +#define Trap(condition, errorType) ((void)true) #define TrapMacro(condition, errorType) (true) #elif defined(FRONTEND) |