Commit 69c1da63 authored by Jose Fonseca's avatar Jose Fonseca

cmake,util: Disable MacOSX depracation warnings everywhere.

They can be quite distracting.
Reviewed-by: Brian Paul's avatarBrian Paul <brianp@vmware.com>
parent 34920fe9
......@@ -300,6 +300,14 @@ if (WIN32)
add_definitions (-D_USE_MATH_DEFINES)
endif (WIN32)
if (APPLE)
# Don't warn about using deprecated OpenGL/GLU/GLUT functions.
# TODO: It would be nice to silence just the deprecation macros from
# OpenGLAvailability.h as opposed to all deprecated functions.
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-deprecated-declarations")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations")
endif ()
if (OPENGL_FOUND)
if (APPLE)
find_path(GLEXT_INCLUDE_DIR
......
......@@ -29,11 +29,6 @@
#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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment