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

Marvin Scholz git at videolan.org
Tue Jun 27 16:24:33 CEST 2017


vlc | branch: master | Marvin Scholz <git at videolan.org> | Tue Jun 27 14:13:11 2017 +0000| [4a066d04153843a0f385a383a486f3a1c68cfc9f] | committer: Thomas Guillem

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=4a066d04153843a0f385a383a486f3a1c68cfc9f
---

 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