From: Ian Romanick Date: Thu, 4 Feb 2010 23:47:54 +0000 (-0800) Subject: glx: Eliminate several 'unused variable' warnings in glxcmds.c. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=26b2bee79d77b7a7b854d7300a10dce69e93d5cd;p=mesa.git glx: Eliminate several 'unused variable' warnings in glxcmds.c. --- diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c index 49224060adb..a4e626bb57f 100644 --- a/src/glx/glxcmds.c +++ b/src/glx/glxcmds.c @@ -65,6 +65,8 @@ static Bool windowExistsFlag; static int windowExistsErrorHandler(Display * dpy, XErrorEvent * xerr) { + (void) dpy; + if (xerr->error_code == BadWindow) { windowExistsFlag = GL_FALSE; } @@ -1471,6 +1473,8 @@ glXQueryExtensionsString(Display * dpy, int screen) PUBLIC const char * glXGetClientString(Display * dpy, int name) { + (void) dpy; + switch (name) { case GLX_VENDOR: return (__glXGLXClientVendorName); @@ -2379,6 +2383,8 @@ __driGetMscRateOML(__DRIdrawable * draw, int i; __GLXDRIdrawable *glxDraw = private; + (void) draw; + psc = glxDraw->psc; if (XF86VidModeQueryVersion(psc->dpy, &i, &i) && XF86VidModeGetModeLine(psc->dpy, psc->scr, &dot_clock, &mode_line)) { @@ -2425,6 +2431,11 @@ __driGetMscRateOML(__DRIdrawable * draw, else return False; #else + (void) draw; + (void) numerator; + (void) denominator; + (void) private; + return False; #endif }