From c3ecfdf40b02f7d12775f1ded2f039d40f1470bb Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 16 Mar 2022 10:57:19 +0100 Subject: Cleanup: Compilation warnings Mainly -Wset-but-unused-variable. Makes default compilation on macOS way less noisy. Differential Revision: https://developer.blender.org/D14357 --- intern/ghost/intern/GHOST_ContextCGL.mm | 6 ++++++ intern/ghost/intern/GHOST_SystemCocoa.mm | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'intern/ghost') diff --git a/intern/ghost/intern/GHOST_ContextCGL.mm b/intern/ghost/intern/GHOST_ContextCGL.mm index 9322b6cee7a..dd800ef52a3 100644 --- a/intern/ghost/intern/GHOST_ContextCGL.mm +++ b/intern/ghost/intern/GHOST_ContextCGL.mm @@ -7,6 +7,12 @@ * Definition of GHOST_ContextCGL class. */ +/* Don't generate OpenGL deprecation warning. This is a known thing, and is not something easily + * solvable in a short term. */ +#ifdef __clang__ +# pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + #include "GHOST_ContextCGL.h" #include diff --git a/intern/ghost/intern/GHOST_SystemCocoa.mm b/intern/ghost/intern/GHOST_SystemCocoa.mm index f0db6b6fdfc..b6836614962 100644 --- a/intern/ghost/intern/GHOST_SystemCocoa.mm +++ b/intern/ghost/intern/GHOST_SystemCocoa.mm @@ -1050,8 +1050,6 @@ void GHOST_SystemCocoa::notifyExternalEventProcessed() GHOST_TSuccess GHOST_SystemCocoa::handleWindowEvent(GHOST_TEventType eventType, GHOST_WindowCocoa *window) { - NSArray *windowsList; - windowsList = [NSApp orderedWindows]; if (!validWindow(window)) { return GHOST_kFailure; } -- cgit v1.2.3