From e4100a47b7d06672c52ab2f43899f7f12ce2d251 Mon Sep 17 00:00:00 2001 From: Levi Morrison Date: Fri, 29 Sep 2023 16:36:57 -0600 Subject: [PATCH] fix -Wreturn-type and -Wstrict-prototypes in gd configure This kind of thing is why -Werror is enabled late, but in this case, I don't see any reason why we shouldn't just fix it. --- ext/gd/config.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/gd/config.m4 b/ext/gd/config.m4 index b342074027059..826d7c7c826a2 100644 --- a/ext/gd/config.m4 +++ b/ext/gd/config.m4 @@ -194,7 +194,7 @@ dnl Various checks for GD features PHP_TEST_BUILD(foobar, [], [ AC_MSG_ERROR([GD build test failed. Please check the config.log for details.]) - ], [ $GD_SHARED_LIBADD ], [char foobar () {}]) + ], [ $GD_SHARED_LIBADD ], [char foobar(void) { return '\0'; }]) else extra_sources="gd_compat.c"