[vlc-commits] macOS: disable warnings around Slider.isVertical

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


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

macOS: disable warnings around Slider.isVertical

This is temporary, until we find a better solution

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

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

 modules/gui/macosx/VLCDefaultValueSliderCell.m | 3 +++
 modules/gui/macosx/VLCHUDSliderCell.m          | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/modules/gui/macosx/VLCDefaultValueSliderCell.m b/modules/gui/macosx/VLCDefaultValueSliderCell.m
index 061bcbb..193bf33 100644
--- a/modules/gui/macosx/VLCDefaultValueSliderCell.m
+++ b/modules/gui/macosx/VLCDefaultValueSliderCell.m
@@ -120,6 +120,8 @@
  * This is later used to draw the default tick mark in the center of
  * where the knob would be, when it is at the default value.
  */
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wpartial-availability"
 - (NSRect)knobRectFlipped:(BOOL)flipped forValue:(double)doubleValue
 {
     NSRect superRect = [super knobRectFlipped:flipped];
@@ -186,6 +188,7 @@
     // Redraw knob
     [super drawKnob];
 }
+#pragma clang diagnostic pop
 
 - (BOOL)continueTracking:(NSPoint)lastPoint at:(NSPoint)currentPoint inView:(NSView *)controlView
 {
diff --git a/modules/gui/macosx/VLCHUDSliderCell.m b/modules/gui/macosx/VLCHUDSliderCell.m
index 688f96e..b879fbe 100644
--- a/modules/gui/macosx/VLCHUDSliderCell.m
+++ b/modules/gui/macosx/VLCHUDSliderCell.m
@@ -53,6 +53,8 @@ NSAffineTransform* RotationTransform(const CGFloat angle, const NSPoint point)
     return transform;
 }
 
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wpartial-availability"
 - (void) drawKnob:(NSRect)smallRect
 {
     NSBezierPath *path = [NSBezierPath bezierPath];
@@ -176,6 +178,7 @@ NSAffineTransform* RotationTransform(const CGFloat angle, const NSPoint point)
     path = [NSBezierPath bezierPathWithRoundedRect:activeRect xRadius:2.0 yRadius:2.0];
     [path fill];
 }
+#pragma clang diagnostic pop
 
 - (void)drawTickMarks
 {



More information about the vlc-commits mailing list