# HG changeset patch # User Rik # Date 1553571075 25200 # Node ID eebf4b67f012b96f2fa5eae5a2c9ec6ec35eb97d # Parent de826e69a5ea56a4f9e7790e43472f30386ebec3 Silence warning on Mac platforms about deprecated OpenGL API (bug #55991). * oct-conf-post.in.h: If on Mac, and building OpenGL plotting, define GL_SILENCE_DEPRECATION so that hundreds of warnings aren't printed. diff -r de826e69a5ea -r eebf4b67f012 oct-conf-post.in.h --- a/oct-conf-post.in.h Tue Mar 26 02:42:38 2019 +0000 +++ b/oct-conf-post.in.h Mon Mar 25 20:31:15 2019 -0700 @@ -124,6 +124,11 @@ # define OCTAVE_USE_OS_X_API 1 #endif +/* Silence deprecated API warning from Apple OS > 10.14 */ +#if defined (__APPLE__) && defined (__MACH__) && defined (HAVE_OPENGL) +# define GL_SILENCE_DEPRECATION 1 +#endif + /* Define to 1 if we expect to have , Sleep, etc. */ #if defined (__WIN32__) && ! defined (__CYGWIN__) # define OCTAVE_USE_WINDOWS_API 1