Fix compiler warnings on Android

This commit is contained in:
leo60228
2023-09-21 17:49:01 -04:00
committed by Misa Elizabeth Kai
parent 246a91c45e
commit d6a43fad90
3 changed files with 13 additions and 1 deletions

View File

@@ -274,6 +274,11 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
target_compile_options(VVVVVV PRIVATE -Wno-c++11-long-long)
endif()
# Disable warnings about flexible array members in C++ (from including FAudio)
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
target_compile_options(VVVVVV PRIVATE -Wno-c99-extensions)
endif()
if(MSVC)
# MSVC doesn't have /std:c99 or /std:c++98 switches!