Add 'static' to file-local variables missing it.

Noticed when comparing the set of exported symbols without / with
-fvisibility=hidden after adding PGDLLIMPORT to intentionally exported
symbols.

Discussion: https://postgr.es/m/20220512164513.vaheofqp2q24l65r@alap3.anarazel.de
This commit is contained in:
Andres Freund 2022-05-12 09:19:04 -07:00
parent 905c020bef
commit 09cd33f47b
8 changed files with 12 additions and 12 deletions

View File

@ -475,7 +475,7 @@ static relopt_real realRelOpts[] =
}; };
/* values from StdRdOptIndexCleanup */ /* values from StdRdOptIndexCleanup */
relopt_enum_elt_def StdRdOptIndexCleanupValues[] = static relopt_enum_elt_def StdRdOptIndexCleanupValues[] =
{ {
{"auto", STDRD_OPTION_VACUUM_INDEX_CLEANUP_AUTO}, {"auto", STDRD_OPTION_VACUUM_INDEX_CLEANUP_AUTO},
{"on", STDRD_OPTION_VACUUM_INDEX_CLEANUP_ON}, {"on", STDRD_OPTION_VACUUM_INDEX_CLEANUP_ON},
@ -490,7 +490,7 @@ relopt_enum_elt_def StdRdOptIndexCleanupValues[] =
}; };
/* values from GistOptBufferingMode */ /* values from GistOptBufferingMode */
relopt_enum_elt_def gistBufferingOptValues[] = static relopt_enum_elt_def gistBufferingOptValues[] =
{ {
{"auto", GIST_OPTION_BUFFERING_AUTO}, {"auto", GIST_OPTION_BUFFERING_AUTO},
{"on", GIST_OPTION_BUFFERING_ON}, {"on", GIST_OPTION_BUFFERING_ON},
@ -499,7 +499,7 @@ relopt_enum_elt_def gistBufferingOptValues[] =
}; };
/* values from ViewOptCheckOption */ /* values from ViewOptCheckOption */
relopt_enum_elt_def viewCheckOptValues[] = static relopt_enum_elt_def viewCheckOptValues[] =
{ {
/* no value for NOT_SET */ /* no value for NOT_SET */
{"local", VIEW_OPTION_CHECK_OPTION_LOCAL}, {"local", VIEW_OPTION_CHECK_OPTION_LOCAL},

View File

@ -98,7 +98,7 @@ typedef struct CommitTimestampShared
bool commitTsActive; bool commitTsActive;
} CommitTimestampShared; } CommitTimestampShared;
CommitTimestampShared *commitTsShared; static CommitTimestampShared *commitTsShared;
/* GUC variable */ /* GUC variable */

View File

@ -121,9 +121,9 @@ bool bsysscan = false;
* The XIDs are stored sorted in numerical order (not logical order) to make * The XIDs are stored sorted in numerical order (not logical order) to make
* lookups as fast as possible. * lookups as fast as possible.
*/ */
FullTransactionId XactTopFullTransactionId = {InvalidTransactionId}; static FullTransactionId XactTopFullTransactionId = {InvalidTransactionId};
int nParallelCurrentXids = 0; static int nParallelCurrentXids = 0;
TransactionId *ParallelCurrentXids; static TransactionId *ParallelCurrentXids;
/* /*
* Miscellaneous flag bits to record events which occur on the top level * Miscellaneous flag bits to record events which occur on the top level

View File

@ -73,7 +73,7 @@ typedef struct PendingRelSync
} PendingRelSync; } PendingRelSync;
static PendingRelDelete *pendingDeletes = NULL; /* head of linked list */ static PendingRelDelete *pendingDeletes = NULL; /* head of linked list */
HTAB *pendingSyncHash = NULL; static HTAB *pendingSyncHash = NULL;
/* /*

View File

@ -65,7 +65,7 @@ typedef struct LogicalRepCtxStruct
LogicalRepWorker workers[FLEXIBLE_ARRAY_MEMBER]; LogicalRepWorker workers[FLEXIBLE_ARRAY_MEMBER];
} LogicalRepCtxStruct; } LogicalRepCtxStruct;
LogicalRepCtxStruct *LogicalRepCtx; static LogicalRepCtxStruct *LogicalRepCtx;
static void ApplyLauncherWakeup(void); static void ApplyLauncherWakeup(void);
static void logicalrep_launcher_onexit(int code, Datum arg); static void logicalrep_launcher_onexit(int code, Datum arg);

View File

@ -124,7 +124,7 @@ static bool table_states_valid = false;
static List *table_states_not_ready = NIL; static List *table_states_not_ready = NIL;
static bool FetchTableStates(bool *started_tx); static bool FetchTableStates(bool *started_tx);
StringInfo copybuf = NULL; static StringInfo copybuf = NULL;
/* /*
* Exit routine for synchronization worker. * Exit routine for synchronization worker.

View File

@ -251,7 +251,7 @@ static MemoryContext LogicalStreamingContext = NULL;
WalReceiverConn *LogRepWorkerWalRcvConn = NULL; WalReceiverConn *LogRepWorkerWalRcvConn = NULL;
Subscription *MySubscription = NULL; Subscription *MySubscription = NULL;
bool MySubscriptionValid = false; static bool MySubscriptionValid = false;
bool in_remote_transaction = false; bool in_remote_transaction = false;
static XLogRecPtr remote_final_lsn = InvalidXLogRecPtr; static XLogRecPtr remote_final_lsn = InvalidXLogRecPtr;

View File

@ -28,7 +28,7 @@ typedef struct CommandTagBehavior
#define PG_CMDTAG(tag, name, evtrgok, rwrok, rowcnt) \ #define PG_CMDTAG(tag, name, evtrgok, rwrok, rowcnt) \
{ name, evtrgok, rwrok, rowcnt }, { name, evtrgok, rwrok, rowcnt },
const CommandTagBehavior tag_behavior[COMMAND_TAG_NEXTTAG] = { static const CommandTagBehavior tag_behavior[COMMAND_TAG_NEXTTAG] = {
#include "tcop/cmdtaglist.h" #include "tcop/cmdtaglist.h"
}; };