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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy