mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
cmake: use -Wuninitialized only for GCC >= 4.4
It doesn't work with 4.3.3
This commit is contained in:
parent
1ce85e005c
commit
3ef33627b5
1 changed files with 1 additions and 1 deletions
|
@ -699,7 +699,7 @@ if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX OR COMPILER_IS_CLANG)
|
|||
set(CMAKE_C_FLAGS "-fanalyzer ${CMAKE_C_FLAGS}" )
|
||||
endif()
|
||||
|
||||
if (CMAKE_COMPILER_IS_CLANG OR CMAKE_C_COMPILER_VERSION VERSION_GREATER 4.3)
|
||||
if (CMAKE_COMPILER_IS_CLANG OR CMAKE_C_COMPILER_VERSION VERSION_GREATER 4.4)
|
||||
set(CMAKE_C_FLAGS "-Wuninitialized ${CMAKE_C_FLAGS}")
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue