summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodger Combs <rodger.combs@gmail.com>2019-04-05 03:12:41 -0500
committerJan Ekström <jeebjp@gmail.com>2019-09-28 15:20:35 +0300
commitc940d7dc8ccdc572ab2cd90ab6e69a8697a1df00 (patch)
tree06d1f66099e71001b1eeb0c4e355d9d699a2f020
parent0c8eb80e98411db90cfdf98d6cf68a6bea0a773f (diff)
downloadmpv-c940d7dc8ccdc572ab2cd90ab6e69a8697a1df00.tar.bz2
mpv-c940d7dc8ccdc572ab2cd90ab6e69a8697a1df00.tar.xz
build: silence OpenGL deprecation warnings on macOS for C/objC
We know of the deprecation since 10.14, and thus we do not need to be reminded of it with each compiled file.
-rw-r--r--wscript3
1 files changed, 2 insertions, 1 deletions
diff --git a/wscript b/wscript
index 312da2ef30..3569dbf060 100644
--- a/wscript
+++ b/wscript
@@ -608,7 +608,8 @@ video_output_features = [
'groups': [ 'gl' ],
'func': check_statement('IOSurface/IOSurface.h',
'IOSurfaceRef surface;',
- framework='IOSurface')
+ framework='IOSurface',
+ cflags=['-DGL_SILENCE_DEPRECATION'])
} , {
'name': '--gl-x11',
'desc': 'OpenGL X11 Backend',