From 2e15f0c86066b6f455c817b81e59bdca1afb0ee2 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 10 Nov 2011 15:54:15 -0700 Subject: [PATCH] egl: silence unused var warning --- src/egl/main/egldisplay.c | 2 ++ 1 file changed, 2 insertions(+) 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. */ -- 2.30.2