mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-01 11:35:43 +00:00
Enable Clang warning "-Wshorten-64-to-32"
This commit is contained in:
1 parent
955695d948
commit
0d02425a87
1 file changed
+1
@@ -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