← Commit list

4c9af8b6d1

Viktor Szakats
Viktor Szakats
2026-04-08
SUCCESS Duration: 307s

Subject

configure: silence useless clang warnings in C89 builds

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

m4/curl-compilers.m4+11 -0
@@ -962,6 +962,17 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [c++-keyword])
fi
fi
+
+ case "$CFLAGS" in
+ *-std=c89*|*-std=c90*|*-std=gnu89*|*-std=gnu90*)
+ if test "$compiler_num" -ge "300"; then
+ tmp_CFLAGS="$tmp_CFLAGS -Wno-c99-extensions" # Avoid: warning: '_Bool' is a C99 extension
+ fi
+ if test "$compiler_num" -ge "309"; then
+ tmp_CFLAGS="$tmp_CFLAGS -Wno-comma" # Just silly
+ fi
+ ;;
+ esac
fi
;;
#