From: Emil Velikov Date: Fri, 1 Sep 2017 10:51:49 +0000 (+0100) Subject: configure.ac: define WL_HIDE_DEPRECATED at global scale X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fa6b9be22c7a85a8766a31411caafdbe1694d7dc;p=mesa.git configure.ac: define WL_HIDE_DEPRECATED at global scale Due to GCC feature described in previous commit, the expected deprecation warnings may be missing. Set the WL_HIDE_DEPRECATED macro which will omit the deprecated functionality, resulting in more distinct build issues. That is safe since the symbols guarded within the macro is static. Signed-off-by: Emil Velikov Suggested-by: Pekka Paalanen Acked-by: Pekka Paalanen Reviewed-by: Daniel Stone --- diff --git a/configure.ac b/configure.ac index 605c9b4e992..5fa608c4dd0 100644 --- a/configure.ac +++ b/configure.ac @@ -1718,7 +1718,7 @@ for plat in $platforms; do if test "x$have_wayland_protocols" = xno; then AC_MSG_ERROR([wayland-protocols >= $WAYLAND_PROTOCOLS_REQUIRED is needed to compile the wayland platform]) fi - DEFINES="$DEFINES -DHAVE_WAYLAND_PLATFORM" + DEFINES="$DEFINES -DHAVE_WAYLAND_PLATFORM -DWL_HIDE_DEPRECATED" ;; x11) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index 42bca61cfda..8f589926963 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -25,8 +25,6 @@ * Kristian Høgsberg */ -#define WL_HIDE_DEPRECATED - #include #include #include