[vlc-commits] macOS: Fix partial availability error in VLCHUDSliderCell

Marvin Scholz git at videolan.org
Tue Jun 27 16:13:11 CEST 2017


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Tue Jun 27 16:10:58 2017 +0200| [895af324626ff6920418581c83eb41818a281950] | committer: Marvin Scholz

macOS: Fix partial availability error in VLCHUDSliderCell

drawTickMarks is only available on 10.9 and higher according to header
files, we only call super drawTickMarks on OSX_YOSEMITE_AND_HIGHER
though, so it is safe to ignore this here.

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

 modules/gui/macosx/VLCHUDSliderCell.m | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/gui/macosx/VLCHUDSliderCell.m b/modules/gui/macosx/VLCHUDSliderCell.m
index 47ff7096c3..f6e7e558da 100644
--- a/modules/gui/macosx/VLCHUDSliderCell.m
+++ b/modules/gui/macosx/VLCHUDSliderCell.m
@@ -320,6 +320,8 @@ NSAffineTransform* RotationTransform(const CGFloat angle, const NSPoint point)
     }
 }
 
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wpartial-availability"
 - (void)drawTickMarks
 {
     if (OSX_YOSEMITE_AND_HIGHER) {
@@ -335,5 +337,6 @@ NSAffineTransform* RotationTransform(const CGFloat angle, const NSPoint point)
         NSRectFill(tickMarkRect);
     }
 }
+#pragma clang diagnostic pop
 
 @end



More information about the vlc-commits mailing list