From 2139f8e9e4812a79621319b757e6fa4d40bff8d6 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Tue, 23 Mar 2021 15:17:34 +0100 Subject: [PATCH] -Wimplicit-fallthrough=2 is added for gcc 7+ Signed-off-by: Janos SUTO --- configure | 2 +- configure.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index c195b24c..ae4e20f6 100755 --- a/configure +++ b/configure @@ -4837,7 +4837,7 @@ echo; echo gcc_version="$(gcc -dumpversion)" extra_cflags="" -if [ "${gcc_version:0:1}" -gt 5 ]; then +if [ "${gcc_version:0:1}" -gt 6 ]; then extra_cflags="-Wimplicit-fallthrough=2" fi diff --git a/configure.in b/configure.in index 2e522ba1..b268a207 100644 --- a/configure.in +++ b/configure.in @@ -524,7 +524,7 @@ echo; echo gcc_version="$(gcc -dumpversion)" extra_cflags="" -if [[ "${gcc_version:0:1}" -gt 5 ]]; then +if [[ "${gcc_version:0:1}" -gt 6 ]]; then extra_cflags="-Wimplicit-fallthrough=2" fi