diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2010-02-04 15:47:54 -0800 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-02-11 15:40:28 -0800 |
commit | 26b2bee79d77b7a7b854d7300a10dce69e93d5cd (patch) | |
tree | e2a3f6a47ec074549723b6e3a312d92666b18fb8 /src | |
parent | 2b4e009ed56b69b243f5cc88f490dcf8166cf729 (diff) |
glx: Eliminate several 'unused variable' warnings in glxcmds.c.
Diffstat (limited to 'src')
-rw-r--r-- | src/glx/glxcmds.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c index 49224060ad..a4e626bb57 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 } |