Skip to content

Commit 1945e2f

Browse files
SmartKeyerroravamingli
authored andcommitted
fix compile warning (#16916)
As the title said, just fix the compile warning: cdbpath.c:2686:1: warning: no previous prototype for 'unset_allow_append_initplan_for_function_scan' [-Wmissing-prototypes] 2686 | unset_allow_append_initplan_for_function_scan() | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cdbpath.c:2692:1: warning: no previous prototype for 'set_allow_append_initplan_for_function_scan' [-Wmissing-prototypes] 2692 | set_allow_append_initplan_for_function_scan() | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cdbpath.c:2698:1: warning: no previous prototype for 'get_allow_append_initplan_for_function_scan' [-Wmissing-prototypes] 2698 | get_allow_append_initplan_for_function_scan() | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Sorry for not noticing it, will check it more carefully next time.
1 parent 41eb749 commit 1945e2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/include/cdb/cdbpath.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ cdbpath_motion_for_parallel_join(PlannerInfo *root,
7676
bool inner_require_existing_order,
7777
bool parallel_aware);
7878

79-
extern void set_allow_append_initplan_for_function_scan();
80-
extern void unset_allow_append_initplan_for_function_scan();
81-
extern bool get_allow_append_initplan_for_function_scan();
79+
extern void set_allow_append_initplan_for_function_scan(void);
80+
extern void unset_allow_append_initplan_for_function_scan(void);
81+
extern bool get_allow_append_initplan_for_function_scan(void);
8282

8383
#endif /* CDBPATH_H */

0 commit comments

Comments
 (0)