Skip to content

Commit

Permalink
Merge pull request #2636 from brauner/2018-09-21/fix_implicit_fallthr…
Browse files Browse the repository at this point in the history
…ough

autotools: fix check for -Wimplicit-fallthrough
  • Loading branch information
stgraber committed Sep 22, 2018
2 parents 62f2b74 + 23b44c3 commit 3c97aeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -684,7 +684,7 @@ AC_PROG_SED
LXC_CHECK_TLS

AX_CHECK_COMPILE_FLAG([-fdiagnostics-color], [CFLAGS="$CFLAGS -fdiagnostics-color"],,[-Werror])
AX_CHECK_COMPILE_FLAG([-fdiagnostics-color], [CFLAGS="$CFLAGS -Wimplicit-fallthrough"],,[-Werror])
AX_CHECK_COMPILE_FLAG([-implicit-fallthrough], [CFLAGS="$CFLAGS -Wimplicit-fallthrough"],,[-Werror])

CFLAGS="$CFLAGS -Wvla -std=gnu11"
if test "x$enable_werror" = "xyes"; then
Expand Down

0 comments on commit 3c97aeb

Please sign in to comment.