Mesa (master): glx: Eliminate several 'unused variable' warnings in glxcmds .c.
Ian Romanick
idr at kemper.freedesktop.org
Wed Feb 17 19:44:23 UTC 2010
Module: Mesa
Branch: master
Commit: 26b2bee79d77b7a7b854d7300a10dce69e93d5cd
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=26b2bee79d77b7a7b854d7300a10dce69e93d5cd
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Thu Feb 4 15:47:54 2010 -0800
glx: Eliminate several 'unused variable' warnings in glxcmds.c.
---
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 4922406..a4e626b 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
}
More information about the mesa-commit
mailing list