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

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

commit e938d9b3b4f4c2149d02147475038e99f63c47dd
Author: Dianjin Wang <[email protected]>
AuthorDate: Wed Jul 1 16:05:21 2026 +0800

    Fix unit test build under GCC 14
    
    gpopt_mock.c uses PG_FUNCTION_ARGS and PG_RETURN_VOID() but only
    included postgres.h. On GCC 14 (Rocky Linux 10) the undeclared macros
    became hard errors (-Wimplicit-function-declaration, -Wimplicit-int)
    rather than warnings. Include fmgr.h, the canonical header for these
    function-manager macros.
    
    Assisted-by: Claude Code
---
 src/test/unit/mock/gpopt_mock.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/test/unit/mock/gpopt_mock.c b/src/test/unit/mock/gpopt_mock.c
index ae16a4cab75..4f70eb03898 100644
--- a/src/test/unit/mock/gpopt_mock.c
+++ b/src/test/unit/mock/gpopt_mock.c
@@ -1,5 +1,6 @@
 #include "postgres.h"
 
+#include "fmgr.h"
 #include "lib/stringinfo.h"
 #include "nodes/parsenodes.h"
 #include "nodes/plannodes.h"


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to