projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fff977
)
Protect definition of SpinlockSemaArray, just like its declaration.
author
Andres Freund
<andres@anarazel.de>
Sun, 31 Aug 2014 22:03:53 +0000
(
00:03
+0200)
committer
Andres Freund
<andres@anarazel.de>
Sun, 31 Aug 2014 22:03:53 +0000
(
00:03
+0200)
Found via clang's -Wmissing-variable-declarations.
src/backend/storage/lmgr/spin.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/storage/lmgr/spin.c
b/src/backend/storage/lmgr/spin.c
index 9b71744cc6cf5e7b3362ad829f977a81ffc903da..e5a9d3537307c889040699d02d771d0494cd597b 100644
(file)
--- a/
src/backend/storage/lmgr/spin.c
+++ b/
src/backend/storage/lmgr/spin.c
@@
-30,7
+30,9
@@
#include "storage/spin.h"
+#ifndef HAVE_SPINLOCKS
PGSemaphore SpinlockSemaArray;
+#endif
/*
* Report the amount of shared memory needed to store semaphores for spinlock