From 15ed9f87e3a1f91bd7b4a5291edf268b843e5987 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Mon, 9 Jul 2018 18:52:05 +0200 Subject: curl-compilers: enable -Wimplicit-fallthrough=4 for GCC This enables level 4 instead of the default level 3, which of the currently used comments only allows /* FALLTHROUGH */ to silence the warning. Closes https://github.com/curl/curl/pull/2747 --- m4/curl-compilers.m4 | 1 + 1 file changed, 1 insertion(+) (limited to 'm4') diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4 index 63e45f3e0..95afae426 100644 --- a/m4/curl-compilers.m4 +++ b/m4/curl-compilers.m4 @@ -1060,6 +1060,7 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [ tmp_CFLAGS="$tmp_CFLAGS -Walloc-zero" tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2" tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2" + tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough=4" fi # fi -- cgit v1.2.3