From df1b777860181d81f6f54e59c13f780420fdc1c6 Mon Sep 17 00:00:00 2001 From: nyx Date: Thu, 25 Sep 2025 17:49:25 +0200 Subject: [PATCH] limit to apple only --- src/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ce0b1f8889..7d8d09c67e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -139,7 +139,6 @@ else() -Wno-invalid-offsetof -Wno-unused-parameter -Wno-missing-field-initializers - -Wno-unused-private-field ) if (CXX_CLANG OR CXX_ICC) # Clang or AppleClang @@ -166,6 +165,10 @@ else() add_compile_options("-stdlib=libc++") endif() + if (CXX_APPLE) + add_compile_options(-Wno-unused-private-field) + endif() + # GCC bugs if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "11" AND CXX_GCC) # These diagnostics would be great if they worked, but are just completely broken