Skip to content

Commit d01d78d

Browse files
committed
Add -Wno-strict-prototypes compiler flag to readline extension
1 parent dc9d72f commit d01d78d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/readline/config.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ elif test "$PHP_LIBEDIT" != "no"; then
137137
fi
138138

139139
if test "$PHP_READLINE" != "no" || test "$PHP_LIBEDIT" != "no"; then
140-
PHP_NEW_EXTENSION(readline, readline.c readline_cli.c, $ext_shared, cli)
140+
dnl Add -Wno-strict-prototypes as depends on user libs
141+
PHP_NEW_EXTENSION(readline, readline.c readline_cli.c, $ext_shared, cli, "-Wno-strict-prototypes")
141142
PHP_SUBST(READLINE_SHARED_LIBADD)
142143
fi

0 commit comments

Comments
 (0)