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: jit-before-rebase-2017-11-03~6609 X-Git-Url: http://waps.l3s.uni-hannover.de/gitweb/?a=commitdiff_plain;h=5c1faa7ba729c780b0ac598dbc23dbb1d6e1b872;p=users%2Fandresfreund%2Fpostgres.git 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