Skip to content

Commit e8393f0

Browse files
committed
Add -Wno-type-limits compiler flag to Sodium extension
1 parent 34acbe7 commit e8393f0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/sodium/config.m4

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

1212
AC_DEFINE(HAVE_LIBSODIUMLIB, 1, [ ])
1313

14-
PHP_NEW_EXTENSION(sodium, libsodium.c sodium_pwhash.c, $ext_shared)
14+
dnl Add -Wno-type-limits as this may arise on 32bits platforms
15+
SODIUM_COMPILER_FLAGS="$LIBSODIUM_CFLAGS -Wno-type-limits"
16+
PHP_NEW_EXTENSION(sodium, libsodium.c sodium_pwhash.c, $ext_shared, , $SODIUM_COMPILER_FLAGS)
1517
PHP_SUBST(SODIUM_SHARED_LIBADD)
1618
fi

0 commit comments

Comments
 (0)