summaryrefslogtreecommitdiffstats
path: root/src/egl/main
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-11-10 15:54:15 -0700
committerBrian Paul <[email protected]>2011-11-10 16:00:46 -0700
commit2e15f0c86066b6f455c817b81e59bdca1afb0ee2 (patch)
treee8b6c0eaff4175f1060e22a23414bef2f4810292 /src/egl/main
parentbeef101eb325233ddaae3fc3bab28495b86bfada (diff)
egl: silence unused var warning
Diffstat (limited to 'src/egl/main')
-rw-r--r--src/egl/main/egldisplay.c2
1 files changed, 2 insertions, 0 deletions
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. */