projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b64b5cc
)
Make LOCK_PRINT & PROCLOCK_PRINT expand to ((void) 0) when not in use.
author
Tom Lane
Fri, 8 Nov 2013 00:07:38 +0000
(19:07 -0500)
committer
Tom Lane
Fri, 8 Nov 2013 00:07:48 +0000
(19:07 -0500)
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
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/storage/lmgr/lock.c
b/src/backend/storage/lmgr/lock.c
index f4f32e946bd53ace27e2c088eee2dcf11cf95bec..f8dc951009c25d236be8cd37605ef60321e811bd 100644
(file)
--- 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 */