← Commit list

baf32a5cf4

Viktor Szakats
Viktor Szakats
2026-02-25
SUCCESS Duration: 333s

Subject

build: enable `-Wjump-misses-init` for clang 21+

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 →

CMake/PickyWarnings.cmake+2 -1
@@ -255,6 +255,7 @@ if(PICKY_COMPILER)
list(APPEND _picky_enable
-Warray-compare # clang 20.1 gcc 12.0 appleclang ?
-Wc++-hidden-decl # clang 21.1 appleclang ?
+ -Wjump-misses-init # clang 21.1 gcc 4.5 appleclang ?
-Wno-implicit-void-ptr-cast # clang 21.1 appleclang ?
-Wtentative-definition-compat # clang 21.1 appleclang ?
)
@@ -283,7 +284,7 @@ if(PICKY_COMPILER)
endif()
if(CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 4.5)
list(APPEND _picky_enable
- -Wjump-misses-init # gcc 4.5
+ -Wjump-misses-init # clang 21.1 gcc 4.5 appleclang ?
)
if(MINGW)
list(APPEND _picky_enable
m4/curl-compilers.m4+1 -0
@@ -951,6 +951,7 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
dnl clang 21 or later
if test "$compiler_num" -ge "2101"; then
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [c++-hidden-decl])
+ CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [jump-misses-init])
tmp_CFLAGS="$tmp_CFLAGS -Wno-implicit-void-ptr-cast"
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [tentative-definition-compat])
if test "$curl_cv_native_windows" = "yes"; then