Skip to content

Commit afd8695

Browse files
authored
Suppress -Wstrict-prototypes in GD extension (#10803)
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.
1 parent 4379aa0 commit afd8695

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/gd/config.m4

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ dnl Various checks for GD features
189189

190190
PHP_NEW_EXTENSION(gd, gd.c $extra_sources, $ext_shared,, \\$(GD_CFLAGS))
191191
PHP_ADD_BUILD_DIR($ext_builddir/libgd)
192-
GD_CFLAGS="-I$ext_srcdir/libgd $GD_CFLAGS"
192+
GD_CFLAGS="-Wno-strict-prototypes -I$ext_srcdir/libgd $GD_CFLAGS"
193193
GD_HEADER_DIRS="ext/gd/ ext/gd/libgd/"
194194

195195
PHP_TEST_BUILD(foobar, [], [

0 commit comments

Comments
 (0)