diff options
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 |