Content-Length: 258083 | pFad | http://github.com/postgrespro/postgres/commit/5c1faa7ba729c780b0ac598dbc23dbb1d6e1b872

E6 Protect definition of SpinlockSemaArray, just like its declaration. · postgrespro/postgres@5c1faa7 · GitHub
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

Lines changed: 2 additions & 0 deletions
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/5c1faa7ba729c780b0ac598dbc23dbb1d6e1b872

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy