Disable -Werror for warnings in tools.
This commit is contained in:
parent
dae9e5792a
commit
7a8025eacd
@ -12,7 +12,8 @@ set_lib_flags()
|
|||||||
enable_profile()
|
enable_profile()
|
||||||
|
|
||||||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||||
add_flags_cxx("-Wno-error=sign-conversion -Wno-error=conversion -Wno-error=shorten-64-to-32")
|
add_flags_cxx("-Wno-error=sign-conversion -Wno-error=conversion -Wno-error=shorten-64-to-32 -Wno-error=keyword-macro")
|
||||||
|
add_flags_cxx("-Wno-error=old-style-cast")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Set include paths to the used libraries:
|
# Set include paths to the used libraries:
|
||||||
|
@ -15,7 +15,8 @@ include_directories("../../lib/polarssl/include")
|
|||||||
include_directories("../../src")
|
include_directories("../../src")
|
||||||
|
|
||||||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||||
add_flags_cxx("-Wno-error=conversion")
|
add_flags_cxx("-Wno-error=sign-conversion -Wno-error=conversion -Wno-error=shorten-64-to-32 -Wno-error=keyword-macro")
|
||||||
|
add_flags_cxx("-Wno-error=old-style-cast")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
function(flatten_files arg1)
|
function(flatten_files arg1)
|
||||||
|
Loading…
Reference in New Issue
Block a user