]> granicus.if.org Git - postgresql/commitdiff
Protect definition of SpinlockSemaArray, just like its declaration.
authorAndres Freund <andres@anarazel.de>
Sun, 31 Aug 2014 22:03:53 +0000 (00:03 +0200)
committerAndres 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

index 9b71744cc6cf5e7b3362ad829f977a81ffc903da..e5a9d3537307c889040699d02d771d0494cd597b 100644 (file)
@@ -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