Disable -Wshadow & -Wshorten-64-to-32 for ihv/arm

Error triggers in 3rdParty code ie.

renderdoc/driver/ihv/arm/official/lizard/include/lizard/lizard_counter.hpp:66:5: error: declaration shadows a variable in namespace 'lizard' [-Werror,-Wshadow]
This commit is contained in:
Jake Turner
2022-07-19 12:39:58 +01:00
committed by Baldur Karlsson
parent cb2e4f1253
commit 240fcf3373
+4
View File
@@ -53,6 +53,10 @@ endif()
set_property(SOURCE ${sources}
PROPERTY COMPILE_FLAGS "-Wno-unknown-warning-option -Wno-range-loop-construct")
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set_property(SOURCE ${sources} APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-shadow -Wno-shorten-64-to-32")
endif()
add_library(rdoc_arm OBJECT ${sources})
set(include_dirs