Skip to content

Commit a4c5b26

Browse files
committed
Add -Wno-logical-op compiler flag to Sodium extension
1 parent 150ebfd commit a4c5b26

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/sodium/config.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ if test "$PHP_SODIUM" != "no"; then
1111

1212
AC_DEFINE(HAVE_LIBSODIUMLIB, 1, [ ])
1313

14-
dnl Add -Wno-type-limits as this may arise on 32bits platforms
14+
dnl Add -Wno-type-limits and -Wno-logical-op as this may arise on 32bits platforms
1515
SODIUM_COMPILER_FLAGS="$LIBSODIUM_CFLAGS -Wno-type-limits"
16+
AX_CHECK_COMPILE_FLAG([-Wno-logical-op], SODIUM_COMPILER_FLAGS="$SODIUM_COMPILER_FLAGS -Wno-logical-op", , [-Werror])
1617
PHP_NEW_EXTENSION(sodium, libsodium.c sodium_pwhash.c, $ext_shared, , $SODIUM_COMPILER_FLAGS)
1718
PHP_SUBST(SODIUM_SHARED_LIBADD)
1819
fi

0 commit comments

Comments
 (0)