From c48fa0f07801b6b1703161edd11b09eab51c07ea Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 29 Jul 2018 19:35:43 +0530 Subject: [PATCH] Silence the OpenGL deprecation warnings on macOS 10.14 --- setup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup.py b/setup.py index 1e10306a1..9a452a8e8 100755 --- a/setup.py +++ b/setup.py @@ -236,6 +236,9 @@ def kitty_env(): cflags.extend(pkg_config('libpng', '--cflags-only-I')) if is_macos: font_libs = ['-framework', 'CoreText', '-framework', 'CoreGraphics'] + # Apple deprecated OpenGL in Mojave (10.14) silence the endless + # warnings about it + cppflags.append('-DGL_SILENCE_DEPRECATION') else: cflags.extend(pkg_config('fontconfig', '--cflags-only-I')) font_libs = pkg_config('fontconfig', '--libs')