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.
This commit is contained in:
Heikki Linnakangas 2013-12-16 11:27:30 +02:00
parent 1f0626ee40
commit 30b96549ab
7 changed files with 25 additions and 25 deletions

View File

@ -20,6 +20,8 @@
#include "utils/datum.h" #include "utils/datum.h"
#include "utils/memutils.h" #include "utils/memutils.h"
/* GUC parameter */
int GinFuzzySearchLimit = 0;
typedef struct pendingPosition typedef struct pendingPosition
{ {

View File

@ -238,7 +238,7 @@ typedef struct
uint32 count[FAST_PATH_STRONG_LOCK_HASH_PARTITIONS]; uint32 count[FAST_PATH_STRONG_LOCK_HASH_PARTITIONS];
} FastPathStrongRelationLockData; } FastPathStrongRelationLockData;
FastPathStrongRelationLockData *FastPathStrongRelationLocks; static FastPathStrongRelationLockData *FastPathStrongRelationLocks;
/* /*

View File

@ -33,7 +33,7 @@
static HTAB *RelfilenodeMapHash = NULL; static HTAB *RelfilenodeMapHash = NULL;
/* built first time through in InitializeRelfilenodeMap */ /* built first time through in InitializeRelfilenodeMap */
ScanKeyData relfilenode_skey[2]; static ScanKeyData relfilenode_skey[2];
typedef struct typedef struct
{ {

View File

@ -122,5 +122,3 @@ int VacuumPageDirty = 0;
int VacuumCostBalance = 0; /* working state for vacuum */ int VacuumCostBalance = 0; /* working state for vacuum */
bool VacuumCostActive = false; bool VacuumCostActive = false;
int GinFuzzySearchLimit = 0;

View File

@ -34,18 +34,18 @@
/* Global options */ /* Global options */
char *basedir = NULL; static char *basedir = NULL;
static char *xlog_dir = ""; static char *xlog_dir = "";
char format = 'p'; /* p(lain)/t(ar) */ static char format = 'p'; /* p(lain)/t(ar) */
char *label = "pg_basebackup base backup"; static char *label = "pg_basebackup base backup";
bool showprogress = false; static bool showprogress = false;
int verbose = 0; static int verbose = 0;
int compresslevel = 0; static int compresslevel = 0;
bool includewal = false; static bool includewal = false;
bool streamwal = false; static bool streamwal = false;
bool fastcheckpoint = false; static bool fastcheckpoint = false;
bool writerecoveryconf = false; static bool writerecoveryconf = false;
int standby_message_timeout = 10 * 1000; /* 10 sec = default */ static int standby_message_timeout = 10 * 1000; /* 10 sec = default */
/* Progress counters */ /* Progress counters */
static uint64 totalsize; static uint64 totalsize;

View File

@ -32,11 +32,11 @@
#define RECONNECT_SLEEP_TIME 5 #define RECONNECT_SLEEP_TIME 5
/* Global options */ /* Global options */
char *basedir = NULL; static char *basedir = NULL;
int verbose = 0; static int verbose = 0;
int noloop = 0; static int noloop = 0;
int standby_message_timeout = 10 * 1000; /* 10 sec = default */ static int standby_message_timeout = 10 * 1000; /* 10 sec = default */
volatile bool time_to_abort = false; static volatile bool time_to_abort = false;
static void usage(void); static void usage(void);

View File

@ -90,11 +90,11 @@ bool g_verbose; /* User wants verbose narration of our
* activities. */ * activities. */
/* various user-settable parameters */ /* various user-settable parameters */
bool schemaOnly; static bool schemaOnly;
bool dataOnly; static bool dataOnly;
int dumpSections; /* bitmask of chosen sections */ static int dumpSections; /* bitmask of chosen sections */
bool aclsSkip; static bool aclsSkip;
const char *lockWaitTimeout; static const char *lockWaitTimeout;
/* subquery used to convert user ID (eg, datdba) to user name */ /* subquery used to convert user ID (eg, datdba) to user name */
static const char *username_subquery; static const char *username_subquery;