rbutil: Ignore the deprecated warnings for macos builds

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]> Wed, 15 Jul 2026 21:17:01 -0400
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit b4a0dc727432ca12c8e230bda669fc304952ce25
Author: Solomon Peachy <[email protected]>
Date:   Wed Jul 15 21:15:51 2026 -0400

    rbutil: Ignore the deprecated warnings for macos builds
    
    A replacement is in progress, so let's ignore those warnings in the mean time
    
    Change-Id: Ic3123d2b37a21c6c0570619c387de0f1141c70f1

diff --git a/utils/rbutilqt/CMakeLists.txt b/utils/rbutilqt/CMakeLists.txt
index b3b564510f..f35eefb1ad 100644
--- a/utils/rbutilqt/CMakeLists.txt
+++ b/utils/rbutilqt/CMakeLists.txt
@@ -246,6 +246,12 @@ if(APPLE)
     target_sources(rbbase PRIVATE
         ${CMAKE_CURRENT_LIST_DIR}/base/ttscarbon.cpp
         ${CMAKE_CURRENT_LIST_DIR}/base/ttscarbon.h)
+
+    # The below is only needed for ttscarbon
+    # So we can delete this whole if(APPLE) block at once
+    target_compile_options(rbbase PRIVATE
+      $<$<COMPILE_LANGUAGE:CXX>:-Wno-deprecated-declarations>
+    )
 endif()
 
 if (TARGET Qt${QT_VERSION_MAJOR}::TextToSpeech AND TARGET Qt${QT_VERSION_MAJOR}::Multimedia)
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs