Make LOCK_PRINT & PROCLOCK_PRINT expand to ((void) 0) when not in use.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 8 Nov 2013 00:07:38 +0000 (19:07 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 8 Nov 2013 00:07:48 +0000 (19:07 -0500)
commit20803d7881c3865edede170579f55261140b5d0d
treebb1ac6271e89586bfa3cd1b6719ae24b916f18d3
parentb64b5ccb6a9c6877080b8ef86790e738031089d5
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
src/backend/storage/lmgr/lock.c