From 5c1faa7ba729c780b0ac598dbc23dbb1d6e1b872 Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Mon, 1 Sep 2014 00:03:53 +0200 Subject: [PATCH] Protect definition of SpinlockSemaArray, just like its declaration. Found via clang's -Wmissing-variable-declarations. --- src/backend/storage/lmgr/spin.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.40.0