From 706a3d0764cd21be89a86e1f6130e70e7da3d536 Mon Sep 17 00:00:00 2001 From: crueter Date: Tue, 2 Jun 2026 01:28:16 +0200 Subject: [PATCH] [cmake] Disable `no-cast-function-type-mismatch` on Clang 19 (#4038) Suppresses this annoying warning during Android builds Signed-off-by: crueter Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4038 Reviewed-by: Lizzie Reviewed-by: MaranBr --- src/core/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 2a42090ddc..9d774ca0a1 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -1200,7 +1200,7 @@ else() $<$:-Wno-cast-function-type> $<$:-fsized-deallocation>) # pre-clang19 will spam with "OH DID YOU MEAN THIS?" otherwise... - if (CXX_CLANG AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19) + if (CXX_CLANG AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 20) target_compile_options(core PRIVATE $<$:-Wno-cast-function-type-mismatch>) endif() endif()