Mesa (master): egl: silence unused var warning

Brian Paul brianp at kemper.freedesktop.org
Thu Nov 10 23:01:17 UTC 2011


Module: Mesa
Branch: master
Commit: 2e15f0c86066b6f455c817b81e59bdca1afb0ee2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2e15f0c86066b6f455c817b81e59bdca1afb0ee2

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Nov 10 15:54:15 2011 -0700

egl: silence unused var warning

---

 src/egl/main/egldisplay.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/egl/main/egldisplay.c b/src/egl/main/egldisplay.c
index 39ba883..898a60a 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. */




More information about the mesa-commit mailing list