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

Commitc1907f0

Browse files
committed
Fix a bunch of functions that were declared static then defined not-static.
Per testing with a compiler that whines about this.
1 parent6c42b2b commitc1907f0

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

‎src/backend/access/transam/xlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8318,7 +8318,7 @@ CreateCheckPoint(int flags)
83188318
* CreateRestartPoint() allows for the case where recovery may end before
83198319
* the restartpoint completes so there is no concern of concurrent behaviour.
83208320
*/
8321-
void
8321+
staticvoid
83228322
CreateEndOfRecoveryRecord(void)
83238323
{
83248324
xl_end_of_recoveryxlrec;

‎src/backend/replication/logical/reorderbuffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ ReorderBufferGetTXN(ReorderBuffer *rb)
322322
* Deallocation might be delayed for efficiency purposes, for details check
323323
* the comments above max_cached_changes's definition.
324324
*/
325-
void
325+
staticvoid
326326
ReorderBufferReturnTXN(ReorderBuffer*rb,ReorderBufferTXN*txn)
327327
{
328328
/* clean the lookup cache if we were cached (quite likely) */

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2381,7 +2381,7 @@ RelationCloseSmgrByOid(Oid relationId)
23812381
RelationCloseSmgr(relation);
23822382
}
23832383

2384-
void
2384+
staticvoid
23852385
RememberToFreeTupleDescAtEOX(TupleDesctd)
23862386
{
23872387
if (EOXactTupleDescArray==NULL)

‎src/backend/utils/misc/guc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5340,7 +5340,7 @@ config_enum_get_options(struct config_enum * record, const char *prefix,
53405340
*1: the value is valid
53415341
*0: the name or value is invalid
53425342
*/
5343-
bool
5343+
staticbool
53445344
validate_conf_option(structconfig_generic*record,constchar*name,
53455345
constchar*value,GucSourcesource,intelevel,
53465346
boolfreemem,void*newval,void**newextra)

‎src/bin/pg_ctl/pg_ctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ readfile(const char *path)
399399
/*
400400
* Free memory allocated for optlines through readfile()
401401
*/
402-
void
402+
staticvoid
403403
free_readfile(char**optlines)
404404
{
405405
char*curr_line=NULL;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp