egl: silence unused var warning
authorBrian Paul <brianp@vmware.com>
Thu, 10 Nov 2011 22:54:15 +0000 (15:54 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 10 Nov 2011 23:00:46 +0000 (16:00 -0700)
src/egl/main/egldisplay.c

index 39ba8830cdadb12927c8d84effb1c26007c08373..898a60a3fd9f8394270bb31a57f35dc1f2fae894 100644 (file)
@@ -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. */