mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:41:40 +03:00
build: enable -Wjump-misses-init for GCC 4.5+
This should have caught https://github.com/curl/curl/issues/16246. Closes https://github.com/curl/curl/pull/16252
This commit is contained in:
parent
d164f49520
commit
db4d617c1c
2 changed files with 9 additions and 2 deletions
|
|
@ -184,10 +184,16 @@ if(PICKY_COMPILER)
|
|||
-Wstrict-aliasing=3 # gcc 4.0
|
||||
)
|
||||
endif()
|
||||
if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 4.5 AND MINGW)
|
||||
if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 4.5)
|
||||
list(APPEND _picky_enable
|
||||
-Wno-pedantic-ms-format # gcc 4.5 (MinGW-only)
|
||||
-Wjump-misses-init # gcc 4.5
|
||||
)
|
||||
|
||||
if(MINGW)
|
||||
list(APPEND _picky_enable
|
||||
-Wno-pedantic-ms-format # gcc 4.5 (MinGW-only)
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 4.8)
|
||||
list(APPEND _picky_enable
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue