From: Matthew Fernandez Date: Sat, 26 Mar 2022 01:42:46 +0000 (-0700) Subject: lib/glcomp: silence deprecation warnings X-Git-Tag: 4.0.0~150^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=003c5666ca36cd8316fe351c9a9e68da7684c3d0;p=graphviz lib/glcomp: silence deprecation warnings Warnings about OpenGL function usage fail the CMake build when Smyrna is enabled on macOS. Gitlab: related to #1836, #1854 --- diff --git a/lib/glcomp/opengl.h b/lib/glcomp/opengl.h index 66003eaee..40290fc37 100644 --- a/lib/glcomp/opengl.h +++ b/lib/glcomp/opengl.h @@ -8,8 +8,14 @@ #endif #ifdef __APPLE__ + #include #include + +// Apple considers OpenGL deprecated. So silence Clang’s warnings about our +// use of it. +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + #else #include #include