pgsql: Define Assert() et al to ((void)0) to avoid pedantic warnings.

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Define Assert() et al to ((void)0) to avoid pedantic warnings.
Date: 2014-12-19 13:29:11
Message-ID: E1Y1xcF-0002EN-CO@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2014-12-19 14:00:29 pgsql: Prevent potentially hazardous compiler/cpu reordering during lwl
Previous Message Petr Jelinek 2014-12-19 12:40:00 Re: [COMMITTERS] pgsql: Keep track of transaction commit timestamps