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.
This commit is contained in:
Rodger Combs 2019-04-05 03:12:41 -05:00 committed by Jan Ekström
parent 0c8eb80e98
commit c940d7dc8c
1 changed files with 2 additions and 1 deletions

View File

@ -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',