From: Andres Freund Date: Sun, 31 Aug 2014 22:03:53 +0000 (+0200) Subject: Protect definition of SpinlockSemaArray, just like its declaration. X-Git-Tag: REL9_5_ALPHA1~1534 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c1faa7ba729c780b0ac598dbc23dbb1d6e1b872;p=postgresql Protect definition of SpinlockSemaArray, just like its declaration. Found via clang's -Wmissing-variable-declarations. --- diff --git a/src/backend/storage/lmgr/spin.c b/src/backend/storage/lmgr/spin.c index 9b71744cc6..e5a9d35373 100644 --- 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