diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-06-28 17:01:29 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-06-29 11:58:25 +0200 |
commit | b5a434f7f0ee4d64857f8592eced5b9007d83620 (patch) | |
tree | 6b2ce09a7a09a21fdf4ca5b3380341899c62c42a /m4/curl-compilers.m4 | |
parent | 278b46751ec0950a1732f1e8de3438f0bf570abf (diff) | |
download | curl-b5a434f7f0ee4d64857f8592eced5b9007d83620.tar.gz |
configure: inhibit the implicit-fallthrough warning on gcc-12
... since it no longer acknowledges the comment markup we use for that
purpose.
Reported-by: Younes El-karama
Fixes #7295
Closes #7307
Diffstat (limited to 'm4/curl-compilers.m4')
-rw-r--r-- | m4/curl-compilers.m4 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4 index 485e6017e..6d17a9fbd 100644 --- a/m4/curl-compilers.m4 +++ b/m4/curl-compilers.m4 @@ -1033,7 +1033,10 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [ CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [alloc-zero]) tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2" tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2" - tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough=4" + if test "$compiler_num" -lt "1200"; then + dnl gcc 12 doesn't acknowledge our comment markups + tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough=4" + fi fi # fi |