summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2015-03-24 11:51:25 +0000
committerJose Fonseca <jfonseca@vmware.com>2015-03-24 21:17:40 +0000
commit7125e8f6e39c0eccb89623bbb1e7917a4d91875a (patch)
tree6e9741d421c0841f8c42894c2185c44fb524722b
parentb5c17f668e04be77b3436e34fc65c4966adb7777 (diff)
framework: Don't warn about using deprecated GLUT functions on MacOSX.
Reviewed-by: Brian Paul <brianp@vmware.com>
-rw-r--r--tests/util/piglit-framework-gl/piglit_glut_framework.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/util/piglit-framework-gl/piglit_glut_framework.c b/tests/util/piglit-framework-gl/piglit_glut_framework.c
index 6ce187201..777d20e39 100644
--- a/tests/util/piglit-framework-gl/piglit_glut_framework.c
+++ b/tests/util/piglit-framework-gl/piglit_glut_framework.c
@@ -29,6 +29,11 @@
#include "piglit_glut_framework.h"
#include "piglit-util-gl.h"
+/* Don't warn about using deprecated GLUT functions. */
+#ifdef __APPLE__
+# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
+
struct piglit_glut_framework {
struct piglit_gl_framework gl_fw;