diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2013-11-07 19:07:38 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2013-11-07 19:07:48 -0500 |
commit | 20803d7881c3865edede170579f55261140b5d0d (patch) | |
tree | bb1ac6271e89586bfa3cd1b6719ae24b916f18d3 | |
parent | b64b5ccb6a9c6877080b8ef86790e738031089d5 (diff) | |
download | postgresql-20803d7881c3865edede170579f55261140b5d0d.tar.gz postgresql-20803d7881c3865edede170579f55261140b5d0d.zip |
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
-rw-r--r-- | src/backend/storage/lmgr/lock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/storage/lmgr/lock.c b/src/backend/storage/lmgr/lock.c index f4f32e946bd..f8dc951009c 100644 --- a/src/backend/storage/lmgr/lock.c +++ b/src/backend/storage/lmgr/lock.c @@ -331,8 +331,8 @@ PROCLOCK_PRINT(const char *where, const PROCLOCK *proclockP) } #else /* not LOCK_DEBUG */ -#define LOCK_PRINT(where, lock, type) -#define PROCLOCK_PRINT(where, proclockP) +#define LOCK_PRINT(where, lock, type) ((void) 0) +#define PROCLOCK_PRINT(where, proclockP) ((void) 0) #endif /* not LOCK_DEBUG */ |