xlib: silence unused var warning
authorBrian Paul <brianp@vmware.com>
Mon, 25 Oct 2010 15:17:09 +0000 (09:17 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 25 Oct 2010 15:17:09 +0000 (09:17 -0600)
src/mesa/drivers/x11/fakeglx.c

index f1e62b6bd4f148c98f84c135909c0e867d8d7ef3..577e27d4da3fc8f808a440dd73724e84e4ce80a7 100644 (file)
@@ -868,6 +868,7 @@ register_with_display(Display *dpy)
       XExtCodes *c = XAddExtension(dpy);
       ext = dpy->ext_procs;  /* new extension is at head of list */
       assert(c->extension == ext->codes.extension);
+      (void) c; /* silence warning */
       ext->name = _mesa_strdup(extName);
       ext->close_display = close_display_callback;
    }