Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit30b9654

Browse files
committed
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.
1 parent1f0626e commit30b9654

File tree

7 files changed

+25
-25
lines changed

7 files changed

+25
-25
lines changed

‎src/backend/access/gin/ginget.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
#include"utils/datum.h"
2121
#include"utils/memutils.h"
2222

23+
/* GUC parameter */
24+
intGinFuzzySearchLimit=0;
2325

2426
typedefstructpendingPosition
2527
{

‎src/backend/storage/lmgr/lock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ typedef struct
238238
uint32count[FAST_PATH_STRONG_LOCK_HASH_PARTITIONS];
239239
}FastPathStrongRelationLockData;
240240

241-
FastPathStrongRelationLockData*FastPathStrongRelationLocks;
241+
staticFastPathStrongRelationLockData*FastPathStrongRelationLocks;
242242

243243

244244
/*

‎src/backend/utils/cache/relfilenodemap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
staticHTAB*RelfilenodeMapHash=NULL;
3434

3535
/* built first time through in InitializeRelfilenodeMap */
36-
ScanKeyDatarelfilenode_skey[2];
36+
staticScanKeyDatarelfilenode_skey[2];
3737

3838
typedefstruct
3939
{

‎src/backend/utils/init/globals.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,5 +122,3 @@ intVacuumPageDirty = 0;
122122

123123
intVacuumCostBalance=0;/* working state for vacuum */
124124
boolVacuumCostActive= false;
125-
126-
intGinFuzzySearchLimit=0;

‎src/bin/pg_basebackup/pg_basebackup.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,18 @@
3434

3535

3636
/* Global options */
37-
char*basedir=NULL;
37+
staticchar*basedir=NULL;
3838
staticchar*xlog_dir="";
39-
charformat='p';/* p(lain)/t(ar) */
40-
char*label="pg_basebackup base backup";
41-
boolshowprogress= false;
42-
intverbose=0;
43-
intcompresslevel=0;
44-
boolincludewal= false;
45-
boolstreamwal= false;
46-
boolfastcheckpoint= false;
47-
boolwriterecoveryconf= false;
48-
intstandby_message_timeout=10*1000;/* 10 sec = default */
39+
staticcharformat='p';/* p(lain)/t(ar) */
40+
staticchar*label="pg_basebackup base backup";
41+
staticboolshowprogress= false;
42+
staticintverbose=0;
43+
staticintcompresslevel=0;
44+
staticboolincludewal= false;
45+
staticboolstreamwal= false;
46+
staticboolfastcheckpoint= false;
47+
staticboolwriterecoveryconf= false;
48+
staticintstandby_message_timeout=10*1000;/* 10 sec = default */
4949

5050
/* Progress counters */
5151
staticuint64totalsize;

‎src/bin/pg_basebackup/pg_receivexlog.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@
3232
#defineRECONNECT_SLEEP_TIME 5
3333

3434
/* Global options */
35-
char*basedir=NULL;
36-
intverbose=0;
37-
intnoloop=0;
38-
intstandby_message_timeout=10*1000;/* 10 sec = default */
39-
volatilebooltime_to_abort= false;
35+
staticchar*basedir=NULL;
36+
staticintverbose=0;
37+
staticintnoloop=0;
38+
staticintstandby_message_timeout=10*1000;/* 10 sec = default */
39+
staticvolatilebooltime_to_abort= false;
4040

4141

4242
staticvoidusage(void);

‎src/bin/pg_dump/pg_dump.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ boolg_verbose;/* User wants verbose narration of our
9090
* activities. */
9191

9292
/* various user-settable parameters */
93-
boolschemaOnly;
94-
booldataOnly;
95-
intdumpSections;/* bitmask of chosen sections */
96-
boolaclsSkip;
97-
constchar*lockWaitTimeout;
93+
staticboolschemaOnly;
94+
staticbooldataOnly;
95+
staticintdumpSections;/* bitmask of chosen sections */
96+
staticboolaclsSkip;
97+
staticconstchar*lockWaitTimeout;
9898

9999
/* subquery used to convert user ID (eg, datdba) to user name */
100100
staticconstchar*username_subquery;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp