vlc | branch: master | Jean-Baptiste Kempf <j...@videolan.org> | Wed Dec 21 
20:23:36 2016 +0100| [b630e409cde85bb968241bfddda6777c2ebacb55] | committer: 
Jean-Baptiste Kempf

macOS vout: do not warn about modern selectors

Signed-off-by: Jean-Baptiste Kempf <j...@videolan.org>

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

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

diff --git a/modules/video_output/macosx.m b/modules/video_output/macosx.m
index 3938d9d..7f94d3c 100644
--- a/modules/video_output/macosx.m
+++ b/modules/video_output/macosx.m
@@ -540,9 +540,12 @@ static void OpenglSwap (vlc_gl_t *gl)
     [self setWantsBestResolutionOpenGLSurface:YES];
 
     /* request our screen's HDR mode (introduced in OS X 10.11) */
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wpartial-availability"
     if ([self 
respondsToSelector:@selector(setWantsExtendedDynamicRangeOpenGLSurface:)]) {
         [self setWantsExtendedDynamicRangeOpenGLSurface:YES];
     }
+#pragma clang diagnostic pop
 
     /* Swap buffers only during the vertical retrace of the monitor.
      http://developer.apple.com/documentation/GraphicsImaging/

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to