Skip to content

Commit 5fe6948

Browse files
committed
Use level 1 for -Wimplicit-fallthrough instead of default level 3 from Wextra
1 parent c3d2056 commit 5fe6948

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/Zend.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ else
212212
AC_DEFINE(ZEND_DEBUG,0,[ ])
213213
fi
214214
215-
test -n "$GCC" && CFLAGS="-Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare $CFLAGS"
215+
test -n "$GCC" && CFLAGS="-Wall -Wextra -Wimplicit-fallthrough=1 -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare $CFLAGS"
216216
dnl Check if compiler supports -Wno-clobbered (only GCC)
217217
AX_CHECK_COMPILE_FLAG([-Wno-clobbered], CFLAGS="-Wno-clobbered $CFLAGS", , [-Werror])
218218
AX_CHECK_COMPILE_FLAG([-Wduplicated-cond], CFLAGS="-Wduplicated-cond $CFLAGS", , [-Werror])

0 commit comments

Comments
 (0)