From e27b013d4754e0e81119ab237ffedce8fcebcbbf Mon Sep 17 00:00:00 2001 From: PatTheMav Date: Thu, 23 Nov 2023 13:33:39 +0100 Subject: [PATCH] aja: Disable deprecated declarations warnings on macOS and Linux Deprecation warnings have been investigated and have been deemed non-malicious for the time being. --- UI/frontend-plugins/aja-output-ui/CMakeLists.txt | 3 +-- plugins/aja/CMakeLists.txt | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/UI/frontend-plugins/aja-output-ui/CMakeLists.txt b/UI/frontend-plugins/aja-output-ui/CMakeLists.txt index 3555192e65f9ac..76de1224696de0 100644 --- a/UI/frontend-plugins/aja-output-ui/CMakeLists.txt +++ b/UI/frontend-plugins/aja-output-ui/CMakeLists.txt @@ -75,8 +75,7 @@ elseif(OS_MACOS) "$" "$") # cmake-format: on - target_compile_options(aja-output-ui PRIVATE -Wno-error=deprecated-declarations - -Wno-quoted-include-in-framework-header) + target_compile_options(aja-output-ui PRIVATE -Wno-deprecated-declarations -Wno-quoted-include-in-framework-header) elseif(OS_LINUX OR OS_FREEBSD) find_package(X11 REQUIRED) target_link_libraries(aja-output-ui PRIVATE X11::X11 Qt::GuiPrivate) diff --git a/plugins/aja/CMakeLists.txt b/plugins/aja/CMakeLists.txt index 423d9d099fa25a..233ef23b579dea 100644 --- a/plugins/aja/CMakeLists.txt +++ b/plugins/aja/CMakeLists.txt @@ -58,9 +58,9 @@ elseif(OS_MACOS) find_library(APPKIT AppKit) target_link_libraries(aja PRIVATE ${IOKIT} ${COREFOUNDATION} ${APPKIT}) - target_compile_options(aja PRIVATE -Wno-error=deprecated-declarations -Wno-shorten-64-to-32) + target_compile_options(aja PRIVATE -Wno-deprecated-declarations -Wno-shorten-64-to-32) elseif(OS_LINUX OR OS_FREEBSD) - target_compile_options(aja PRIVATE -Wno-error=deprecated-declarations) + target_compile_options(aja PRIVATE -Wno-deprecated-declarations) endif() set_target_properties_obs(aja PROPERTIES FOLDER plugins PREFIX "")