Disable shortening/shadow warnings on android

* There are a lot of these issues in system or LLVM headers
This commit is contained in:
baldurk
2022-08-05 14:08:45 +01:00
parent be4f10557c
commit cf4bc68806
+1 -1
View File
@@ -396,7 +396,7 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
list(APPEND warning_flags -Wcomma)
endif()
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.0)
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.0 AND NOT ANDROID)
list(APPEND warning_flags -Wshadow)
list(APPEND warning_flags -Wshorten-64-to-32)
endif()