From: Brian Paul Date: Thu, 10 Nov 2011 22:54:15 +0000 (-0700) Subject: egl: silence unused var warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2e15f0c86066b6f455c817b81e59bdca1afb0ee2;p=mesa.git egl: silence unused var warning --- diff --git a/src/egl/main/egldisplay.c b/src/egl/main/egldisplay.c index 39ba8830cda..898a60a3fd9 100644 --- a/src/egl/main/egldisplay.c +++ b/src/egl/main/egldisplay.c @@ -157,6 +157,8 @@ _eglNativePlatformDetectNativeDisplay(EGLNativeDisplayType nativeDisplay) if (_eglPointerIsDereferencable(nativeDisplay)) { void *first_pointer = *(void **) nativeDisplay; + (void) first_pointer; /* silence unused var warning */ + #ifdef HAVE_WAYLAND_PLATFORM /* wl_display is a wl_proxy, which is a wl_object. * wl_object's first element points to the interfacetype. */