mirror of
https://github.com/postgres/postgres.git
synced 2025-08-09 17:03:00 +03:00
Protect definition of SpinlockSemaArray, just like its declaration.
Found via clang's -Wmissing-variable-declarations.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user