From a4fa67c0143d689024f149675d426a7483b65afc Mon Sep 17 00:00:00 2001 From: George Peter Banyard Date: Mon, 6 Mar 2023 17:17:26 +0000 Subject: [PATCH] Suppress -Wstrict-prototypes in GD extension GD uses variadict functions where the signature depends on the library and types of images. Until we can use void f(...) that was introduced in C23 suppress this warning. --- 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 0a175d11d52e7..b342074027059 100644 --- a/ext/gd/config.m4 +++ b/ext/gd/config.m4 @@ -189,7 +189,7 @@ dnl Various checks for GD features PHP_NEW_EXTENSION(gd, gd.c $extra_sources, $ext_shared,, \\$(GD_CFLAGS)) PHP_ADD_BUILD_DIR($ext_builddir/libgd) - GD_CFLAGS="-I$ext_srcdir/libgd $GD_CFLAGS" + GD_CFLAGS="-Wno-strict-prototypes -I$ext_srcdir/libgd $GD_CFLAGS" GD_HEADER_DIRS="ext/gd/ ext/gd/libgd/" PHP_TEST_BUILD(foobar, [], [