fix apple clang

Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
lizzie 2025-09-21 04:15:56 +00:00
parent 3758cff104
commit f72d8222ee
Signed by: Lizzie
GPG key ID: 00287378CADCAB13
2 changed files with 4 additions and 4 deletions

View file

@ -458,15 +458,15 @@ if (YUZU_USE_CPM)
# Opus
AddJsonPackage(opus)
if (NOT TARGET Opus::opus)
add_library(Opus::opus ALIAS opus)
endif()
if (Opus_ADDED)
if (MSVC AND CXX_CLANG)
target_compile_options(opus PRIVATE
-Wno-implicit-function-declaration
)
endif()
if (NOT TARGET Opus::opus)
add_library(Opus::opus ALIAS opus)
endif()
endif()
# VulkanUtilityHeaders - pulls in headers and utility libs

View file

@ -141,7 +141,7 @@ else()
-Wno-missing-field-initializers
)
if (CXX_CLANG OR CXX_ICC) # Clang or AppleClang
if (CXX_APPLE OR CXX_CLANG OR CXX_ICC) # Clang or AppleClang
if (NOT MSVC)
add_compile_options(
-Werror=shadow-uncaptured-local