Skip to content

Commit 12b2b2a

Browse files
committed
Add -Wno-empty-body compiler flag to Phar extension.
1 parent 36d5182 commit 12b2b2a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

ext/phar/config.m4

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,17 @@ PHP_ARG_ENABLE([phar],
55
[yes])
66

77
if test "$PHP_PHAR" != "no"; then
8-
PHP_NEW_EXTENSION(phar, util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
8+
dnl Add -Wno-empty-body because the code generated by rec2 produces this warning
9+
PHAR_COMPILER_FLAGS="$PHAR_CFLAGS -Wno-empty-body -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"
10+
PHP_NEW_EXTENSION(phar, util.c \
11+
tar.c \
12+
zip.c \
13+
stream.c \
14+
func_interceptors.c \
15+
dirstream.c \
16+
phar.c \
17+
phar_object.c \
18+
phar_path_check.c, $ext_shared,, $PHAR_COMPILER_FLAGS)
919
AC_MSG_CHECKING([for phar openssl support])
1020
if test "$PHP_OPENSSL_SHARED" = "yes"; then
1121
AC_MSG_RESULT([no (shared openssl)])

0 commit comments

Comments
 (0)