You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudberry.apache.org by av...@apache.org on 2025/01/23 09:05:01 UTC

(cloudberry) 09/26: fix compile warning (#16916)

This is an automated email from the ASF dual-hosted git repository.

avamingli pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudberry.git

commit 53b8f35b26a0186ff3a22ea20ccc9e4b4e50261a
Author: Zhenglong Li <lz...@vmware.com>
AuthorDate: Wed Jan 3 14:06:58 2024 +0800

    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.
---
 src/include/cdb/cdbpath.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/include/cdb/cdbpath.h b/src/include/cdb/cdbpath.h
index 425248b0c0..ca96686137 100644
--- a/src/include/cdb/cdbpath.h
+++ b/src/include/cdb/cdbpath.h
@@ -76,8 +76,8 @@ cdbpath_motion_for_parallel_join(PlannerInfo    *root,
 						bool            inner_require_existing_order,
 						bool			parallel_aware);
 
-extern void set_allow_append_initplan_for_function_scan();
-extern void unset_allow_append_initplan_for_function_scan();
-extern bool get_allow_append_initplan_for_function_scan();
+extern void set_allow_append_initplan_for_function_scan(void);
+extern void unset_allow_append_initplan_for_function_scan(void);
+extern bool get_allow_append_initplan_for_function_scan(void);
 
 #endif   /* CDBPATH_H */


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cloudberry.apache.org
For additional commands, e-mail: commits-help@cloudberry.apache.org