pgsql: Define Assert() et al to ((void)0) to avoid pedantic warnings. - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: Define Assert() et al to ((void)0) to avoid pedantic warnings.
Date
Msg-id E1Y1xcF-0002EN-CO@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/9959abb0122ca2b0e4817e20954e3083c90becdc

Modified Files
--------------
src/include/c.h |    8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)


pgsql-committers by date:

Previous
From: Noah Misch
Date:
Subject: Re: pgsql: doc: restrictions on alter database moving default tablespace
Next
From: Andres Freund
Date:
Subject: pgsql: Prevent potentially hazardous compiler/cpu reordering during lwl