Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 20803d7

Browse files
committed
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
1 parent b64b5cc commit 20803d7

File tree

1 file changed

+2
-2
lines changed
  • src/backend/storage/lmgr

1 file changed

+2
-2
lines changed

src/backend/storage/lmgr/lock.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,8 @@ PROCLOCK_PRINT(const char *where, const PROCLOCK *proclockP)
331331
}
332332
#else /* not LOCK_DEBUG */
333333

334-
#define LOCK_PRINT(where, lock, type)
335-
#define PROCLOCK_PRINT(where, proclockP)
334+
#define LOCK_PRINT(where, lock, type) ((void) 0)
335+
#define PROCLOCK_PRINT(where, proclockP) ((void) 0)
336336
#endif /* not LOCK_DEBUG */
337337

338338

0 commit comments

Comments
 (0)