Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c1907f0

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 parent 6c42b2b commit c1907f0

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/backend/access/transam/xlog.c

+1-1
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+
static void
83228322
CreateEndOfRecoveryRecord(void)
83238323
{
83248324
xl_end_of_recovery xlrec;

src/backend/replication/logical/reorderbuffer.c

+1-1
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+
static void
326326
ReorderBufferReturnTXN(ReorderBuffer *rb, ReorderBufferTXN *txn)
327327
{
328328
/* clean the lookup cache if we were cached (quite likely) */

src/backend/utils/cache/relcache.c

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

2384-
void
2384+
static void
23852385
RememberToFreeTupleDescAtEOX(TupleDesc td)
23862386
{
23872387
if (EOXactTupleDescArray == NULL)

src/backend/utils/misc/guc.c

+1-1
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+
static bool
53445344
validate_conf_option(struct config_generic * record, const char *name,
53455345
const char *value, GucSource source, int elevel,
53465346
bool freemem, void *newval, void **newextra)

src/bin/pg_ctl/pg_ctl.c

+1-1
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+
static void
403403
free_readfile(char **optlines)
404404
{
405405
char *curr_line = NULL;

0 commit comments

Comments
 (0)