diff options
author | Marcel Raad <Marcel.Raad@teamviewer.com> | 2018-07-09 18:52:05 +0200 |
---|---|---|
committer | Marcel Raad <Marcel.Raad@teamviewer.com> | 2018-08-21 18:53:45 +0200 |
commit | 15ed9f87e3a1f91bd7b4a5291edf268b843e5987 (patch) | |
tree | 7dd8ff713e570a7b216f4e675357e3dbb4a62aa8 /m4 | |
parent | 60776a0515c2a8f572902ad5bcc9f63eeaeafa84 (diff) |
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
Diffstat (limited to 'm4')
-rw-r--r-- | m4/curl-compilers.m4 | 1 |
1 files changed, 1 insertions, 0 deletions
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 |