mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-24 04:06:52 +00:00
configure: fix -Wimplicit-fallthrough check
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
56e28f9258
commit
c73fbad129
@ -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([-implicit-fallthrough], [CFLAGS="$CFLAGS -Wimplicit-fallthrough"],,[-Werror])
|
||||
AX_CHECK_COMPILE_FLAG([-Wimplicit-fallthrough], [CFLAGS="$CFLAGS -Wimplicit-fallthrough"],,[-Werror])
|
||||
AX_CHECK_COMPILE_FLAG([-Wcast-align], [CFLAGS="$CFLAGS -Wcast-align"],,[-Werror])
|
||||
AX_CHECK_COMPILE_FLAG([-Wstrict-prototypes], [CFLAGS="$CFLAGS -Wstrict-prototypes"],,[-Werror])
|
||||
|
||||
|
@ -37,10 +37,8 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__) && __GNUC__ >= 7 || defined(__clang__)
|
||||
#define __fallthrough __attribute__((fallthrough))
|
||||
#else
|
||||
#define __fallthrough
|
||||
#ifndef __fallthrough
|
||||
#define __fallthrough /* fall through */
|
||||
#endif
|
||||
|
||||
#ifndef __noreturn
|
||||
|
Loading…
Reference in New Issue
Block a user