Skip to content
代码片段 群组 项目
提交 221acdde 编辑于 作者: Orgad Shaneh's avatar Orgad Shaneh 提交者: Andy Green
浏览文件

cmake: use -Wuninitialized only for GCC >= 4.4

It doesn't work with 4.3.3
上级 8736a03e
No related branches found
No related tags found
无相关合并请求
......@@ -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()
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册