Skip to content

Commit

Permalink
Remove compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
yamatattsu committed Sep 13, 2024
1 parent bba1f8e commit 7b24619
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions pg_plan_advsr.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,12 @@ static void pg_plan_advsr_ExecutorFinish_hook(QueryDesc *queryDesc);
static void pg_plan_advsr_ExecutorEnd_hook(QueryDesc *queryDesc);

/* Utility functions */
static bool pg_plan_advsr_query_walker(Node *parsetree);

static bool pg_plan_advsr_query_walker(Node *parsetree
#if PG_VERSION_NUM < 160000
);
#else
,void *context);
#endif /* PG_VERSION_NUM */

#if PG_VERSION_NUM < 140000
/* This function came from pg_hint_plan.c */
Expand Down Expand Up @@ -1341,7 +1345,12 @@ hash_query(const char *query)
* Detect if the current utility command is EXPLAIN with ANALYZE option.
*/
static bool
pg_plan_advsr_query_walker(Node *parsetree)
pg_plan_advsr_query_walker(Node *parsetree
#if PG_VERSION_NUM < 160000
)
#else
,void *context)
#endif /* PG_VERSION_NUM */
{
if (parsetree == NULL)
return false;
Expand Down

0 comments on commit 7b24619

Please sign in to comment.