Disable Clang "-Wshorten-64-to-32" for files

3rdParty source files and some renderdoc files which include 3rdparty header files

Disable "-Wshorten-64-to-32" for the whole of qrenderdoc render_python.cxx triggers the warning
This commit is contained in:
Jake Turner
2022-07-21 11:49:49 +01:00
committed by Baldur Karlsson
parent 0d02425a87
commit fb04266122
5 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ set(MODULE_DEFINES
PRIVATE -DRENDERDOC_PLATFORM_LINUX)
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-warning-option -Wno-unused-private-field -Wno-shadow")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-warning-option -Wno-unused-private-field -Wno-shadow -Wno-shorten-64-to-32")
endif()
if(CMAKE_COMPILER_IS_GNUCXX)