mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
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:
committed by
Baldur Karlsson
parent
cb2e4f1253
commit
240fcf3373
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user