summaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-12-16 11:27:30 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-12-16 11:41:17 +0200
commit30b96549ab41ce23399256d4ea9723a05c139558 (patch)
treef54f7f58885fe494a88dacff074a7f847f9a7286 /src/backend
parent1f0626ee40f2decd93ca96c6f9e9a9b5edff57ba (diff)
downloadpostgresql-30b96549ab41ce23399256d4ea9723a05c139558.tar.gz
Mark variables 'static' where possible. Move GinFuzzySearchLimit to ginget.c
Per "clang -Wmissing-variable-declarations" output, posted by Andres Freund. I didn't silence all those warnings, though, only the most obvious cases.
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/access/gin/ginget.c2
-rw-r--r--src/backend/storage/lmgr/lock.c2
-rw-r--r--src/backend/utils/cache/relfilenodemap.c2
-rw-r--r--src/backend/utils/init/globals.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/access/gin/ginget.c b/src/backend/access/gin/ginget.c
index f2ee2fb966..2e3e86f9d3 100644
--- a/src/backend/access/gin/ginget.c
+++ b/src/backend/access/gin/ginget.c
@@ -20,6 +20,8 @@
#include "utils/datum.h"
#include "utils/memutils.h"
+/* GUC parameter */
+int GinFuzzySearchLimit = 0;
typedef struct pendingPosition
{
diff --git a/src/backend/storage/lmgr/lock.c b/src/backend/storage/lmgr/lock.c
index e4c9fa4ab4..536be44189 100644
--- a/src/backend/storage/lmgr/lock.c
+++ b/src/backend/storage/lmgr/lock.c
@@ -238,7 +238,7 @@ typedef struct
uint32 count[FAST_PATH_STRONG_LOCK_HASH_PARTITIONS];
} FastPathStrongRelationLockData;
-FastPathStrongRelationLockData *FastPathStrongRelationLocks;
+static FastPathStrongRelationLockData *FastPathStrongRelationLocks;
/*
diff --git a/src/backend/utils/cache/relfilenodemap.c b/src/backend/utils/cache/relfilenodemap.c
index 1469bfaba2..6806fbb073 100644
--- a/src/backend/utils/cache/relfilenodemap.c
+++ b/src/backend/utils/cache/relfilenodemap.c
@@ -33,7 +33,7 @@
static HTAB *RelfilenodeMapHash = NULL;
/* built first time through in InitializeRelfilenodeMap */
-ScanKeyData relfilenode_skey[2];
+static ScanKeyData relfilenode_skey[2];
typedef struct
{
diff --git a/src/backend/utils/init/globals.c b/src/backend/utils/init/globals.c
index e76704f315..dd1309be05 100644
--- a/src/backend/utils/init/globals.c
+++ b/src/backend/utils/init/globals.c
@@ -122,5 +122,3 @@ int VacuumPageDirty = 0;
int VacuumCostBalance = 0; /* working state for vacuum */
bool VacuumCostActive = false;
-
-int GinFuzzySearchLimit = 0;