Skip to content

Commit e74f59e

Browse files
committed
Add -Wno-implicit-fallthrough compiler flag for Hash
1 parent 6de3649 commit e74f59e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/hash/config.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ else
2828
SHA3_OPT_SRC="$SHA3_DIR/KeccakP-1600-opt64.c"
2929
])
3030
EXT_HASH_SHA3_SOURCES="$SHA3_OPT_SRC $SHA3_DIR/KeccakHash.c $SHA3_DIR/KeccakSponge.c hash_sha3.c"
31-
PHP_HASH_CFLAGS="-I@ext_srcdir@/$SHA3_DIR -DKeccakP200_excluded -DKeccakP400_excluded -DKeccakP800_excluded -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"
31+
dnl Add -Wno-implicit-fallthrough flag as it happens on 32 bit builds
32+
PHP_HASH_CFLAGS="-Wno-implicit-fallthrough -I@ext_srcdir@/$SHA3_DIR -DKeccakP200_excluded -DKeccakP400_excluded -DKeccakP800_excluded -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"
3233

3334
PHP_ADD_BUILD_DIR(ext/hash/$SHA3_DIR, 1)
3435
fi

0 commit comments

Comments
 (0)