pgsql: Make LOCK_PRINT & PROCLOCK_PRINT expand to ((void) 0) when not i - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Make LOCK_PRINT & PROCLOCK_PRINT expand to ((void) 0) when not i
Date
Msg-id E1VeZcP-0003Uk-3k@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Make LOCK_PRINT & PROCLOCK_PRINT expand to ((void) 0) when not in use.

This avoids warnings from more-anal-than-average compilers, and might
prevent hidden syntax problems in the future.

Andres Freund

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/20803d7881c3865edede170579f55261140b5d0d

Modified Files
--------------
src/backend/storage/lmgr/lock.c |    4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgsql: Silence benign warnings from clang version 3.0-6ubuntu3.
Next
From: Tom Lane
Date:
Subject: pgsql: Fix subtly-wrong volatility checking in BeginCopyFrom().