Handle clang 10 warnings:
+ fix -Wtautological-bitwise-compare + fix -Wimplicit-int-float-conversion + fix -Wmisleading-indentation + fix -Wrange-loop-construct + suppress -Wdeprecated-copy of 3rd party libs
This commit is contained in:
@@ -125,6 +125,12 @@ SOURCE_GROUP("Module" FILES ${Mod_SRCS})
|
||||
add_library(Robot SHARED ${Robot_SRCS})
|
||||
target_link_libraries(Robot ${Robot_LIBS})
|
||||
|
||||
unset(_flag_found CACHE)
|
||||
check_cxx_compiler_flag("-Wno-deprecated-copy" _flag_found)
|
||||
if (_flag_found)
|
||||
target_compile_options(Robot PRIVATE -Wno-deprecated-copy)
|
||||
endif()
|
||||
|
||||
SET_BIN_DIR(Robot Robot /Mod/Robot)
|
||||
SET_PYTHON_PREFIX_SUFFIX(Robot)
|
||||
|
||||
|
||||
@@ -156,6 +156,12 @@ SET(RobotGuiIcon_SVG
|
||||
add_library(RobotGui SHARED ${RobotGui_SRCS} ${RobotGuiIcon_SVG})
|
||||
target_link_libraries(RobotGui ${RobotGui_LIBS})
|
||||
|
||||
unset(_flag_found CACHE)
|
||||
check_cxx_compiler_flag("-Wno-deprecated-copy" _flag_found)
|
||||
if (_flag_found)
|
||||
target_compile_options(RobotGui PRIVATE -Wno-deprecated-copy)
|
||||
endif ()
|
||||
|
||||
|
||||
SET_BIN_DIR(RobotGui RobotGui /Mod/Robot)
|
||||
SET_PYTHON_PREFIX_SUFFIX(RobotGui)
|
||||
|
||||
Reference in New Issue
Block a user