mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Enable Clang warning "-Wshorten-64-to-32"
This commit is contained in:
committed by
Baldur Karlsson
parent
955695d948
commit
0d02425a87
@@ -398,6 +398,7 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.0)
|
||||
list(APPEND warning_flags -Wshadow)
|
||||
list(APPEND warning_flags -Wshorten-64-to-32)
|
||||
endif()
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.0 AND NOT APPLE)
|
||||
|
||||
Reference in New Issue
Block a user