Skip to content

Commit 6d2f136

Browse files
akorotkovzilder
authored andcommitted
pathman: Make it builds with clang.
1 parent 58c9f56 commit 6d2f136

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

contrib/pathman/pathman.c

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,21 @@ static void set_plain_rel_pathlist(PlannerInfo *root, RelOptInfo *rel, RangeTblE
4545
static void set_append_rel_pathlist(PlannerInfo *root, RelOptInfo *rel, Index rti, RangeTblEntry *rte);
4646
static List *accumulate_append_subpath(List *subpaths, Path *path);
4747

48-
PG_FUNCTION_INFO_V1( on_partitions_created );
49-
PG_FUNCTION_INFO_V1( on_partitions_updated );
50-
PG_FUNCTION_INFO_V1( on_partitions_removed );
51-
52-
5348
typedef struct
5449
{
5550
Oid old_varno;
5651
Oid new_varno;
5752
} change_varno_context;
5853

54+
static void change_varnos(Node *node, Oid old_varno, Oid new_varno);
55+
static bool change_varno_walker(Node *node, change_varno_context *context);
56+
57+
58+
PG_FUNCTION_INFO_V1( on_partitions_created );
59+
PG_FUNCTION_INFO_V1( on_partitions_updated );
60+
PG_FUNCTION_INFO_V1( on_partitions_removed );
61+
62+
5963

6064
/*
6165
* Entry point
@@ -357,7 +361,7 @@ append_child_relation(PlannerInfo *root, RelOptInfo *rel, Index rti, RangeTblEnt
357361
}
358362

359363

360-
void
364+
static void
361365
change_varnos(Node *node, Oid old_varno, Oid new_varno)
362366
{
363367
change_varno_context context;
@@ -367,7 +371,7 @@ change_varnos(Node *node, Oid old_varno, Oid new_varno)
367371
change_varno_walker(node, &context);
368372
}
369373

370-
void
374+
static bool
371375
change_varno_walker(Node *node, change_varno_context *context)
372376
{
373377
if (node == NULL)

0 commit comments

Comments
 (0)