mirror of
https://github.com/curl/curl.git
synced 2026-08-25 11:53:36 +03:00
build: enable -Wjump-misses-init for clang 21+
Refs:543f112e1443c05d9738Follow-up todb4d617c1c#16252 Closes #20716
This commit is contained in:
parent
a4ce687af2
commit
baf32a5cf4
2 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue