From 0af22a7e7088516b37647a9f72943f4ee5b536b4 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sun, 5 Jul 2020 19:23:27 +0300 Subject: Avoid warning about deprecation in macOS 11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ie1a7e19093b439eb133632ee881e1e3dbe58132d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98176 Tested-by: Jenkins Reviewed-by: Tor Lillqvist Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106459 Reviewed-by: Caolán McNamara --- vcl/osx/salframe.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vcl/osx/salframe.cxx b/vcl/osx/salframe.cxx index 6f7a395522cf..71cc5a4f1982 100644 --- a/vcl/osx/salframe.cxx +++ b/vcl/osx/salframe.cxx @@ -1279,8 +1279,11 @@ SAL_WNODEPRECATED_DECLARATIONS_POP aStyleSettings.GetHighlightTextColor(), mpNSWindow ) ); aStyleSettings.SetHighlightTextColor( aHighlightTextColor ); +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" Color aMenuHighlightColor( getColor( [NSColor selectedMenuItemColor], aStyleSettings.GetMenuHighlightColor(), mpNSWindow ) ); +#pragma clang diagnostic pop aStyleSettings.SetMenuHighlightColor( aMenuHighlightColor ); Color aMenuHighlightTextColor( getColor( [NSColor selectedMenuItemTextColor], aStyleSettings.GetMenuHighlightTextColor(), mpNSWindow ) ); -- cgit