Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 5c1faa7

Browse files
committed
Protect definition of SpinlockSemaArray, just like its declaration.
Found via clang's -Wmissing-variable-declarations.
1 parent 8fff977 commit 5c1faa7

File tree

1 file changed

+2
-0
lines changed
  • src/backend/storage/lmgr

1 file changed

+2
-0
lines changed

src/backend/storage/lmgr/spin.c

+2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
#include "storage/spin.h"
3131

3232

33+
#ifndef HAVE_SPINLOCKS
3334
PGSemaphore SpinlockSemaArray;
35+
#endif
3436

3537
/*
3638
* Report the amount of shared memory needed to store semaphores for spinlock

0 commit comments

Comments
 (0)