[vlc-commits] macOS: statusbar do not warn about modern selectors for visibility

Jean-Baptiste Kempf git at videolan.org
Wed Dec 21 21:23:09 CET 2016


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Dec 21 21:22:02 2016 +0100| [60afd8a149ad6f629ff108ba5fb862ca487dc911] | committer: Jean-Baptiste Kempf

macOS: statusbar do not warn about modern selectors for visibility

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=60afd8a149ad6f629ff108ba5fb862ca487dc911
---

 modules/gui/macosx/VLCStatusBarIcon.m | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/gui/macosx/VLCStatusBarIcon.m b/modules/gui/macosx/VLCStatusBarIcon.m
index dcb965a..09f3474 100644
--- a/modules/gui/macosx/VLCStatusBarIcon.m
+++ b/modules/gui/macosx/VLCStatusBarIcon.m
@@ -172,6 +172,9 @@
         // Attach pull-down menu
         [self.statusItem setMenu:_vlcStatusBarIconMenu];
 
+        // Visibility is 10.12+
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wpartial-availability"
         if (OSX_SIERRA) {
             [self.statusItem setBehavior:NSStatusItemBehaviorRemovalAllowed];
             [self.statusItem setAutosaveName:@"statusBarItem"];
@@ -198,6 +201,7 @@
         [[NSStatusBar systemStatusBar] removeStatusItem:self.statusItem];
         self.statusItem = nil;
     }
+#pragma clang diagnostic pop
 }
 
 - (void)dealloc



More information about the vlc-commits mailing list