From b526f541045a3676f84a956b5749d90fabef3a63 Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Wed, 2 Nov 2016 14:11:01 -0400 Subject: [PATCH] OSXWindow: ignore deprecated warnings We can't fix them yet because our continuous testing doesn't compile with the updated definitions yet. BUG=angleproject:1598 Change-Id: I40bdeaa6bafbd03b5e3e6c16ac8485e3f488fe59 Reviewed-on: https://chromium-review.googlesource.com/406452 Commit-Queue: Corentin Wallez Reviewed-by: Jamie Madill --- util/osx/OSXWindow.mm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/util/osx/OSXWindow.mm b/util/osx/OSXWindow.mm index f1bff0536..98e71248d 100644 --- a/util/osx/OSXWindow.mm +++ b/util/osx/OSXWindow.mm @@ -14,6 +14,12 @@ #include "common/debug.h" +// On OSX 10.12 a number of AppKit interfaces have been renamed for consistency, and the previous +// symbols tagged as deprecated. However we can't simply use the new symbols as it would break +// compilation on our automated testing that doesn't use OSX 10.12 yet. So we just ignore the +// warnings. +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + // Some events such as "ShouldTerminate" are sent to the whole application so we keep a list of // all the windows in order to forward the event to each of them. However this and calling pushEvent // in ApplicationDelegate is inherently unsafe in a multithreaded environment.