summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-07-15 21:09:02 +0200
committerMarek Olšák <[email protected]>2011-07-15 21:48:29 +0200
commit7854b8cb166e513300085f8798b3fd05ae6a492e (patch)
tree61d38445f0c5d20151a0e7b4ae5634814d8dbdc3 /src
parent036fb079089a0494b573761cb8cd598a41519a02 (diff)
xmlconfig: remove an unused-but-set variable
I hate gcc 4.6 already.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/common/xmlconfig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/common/xmlconfig.c b/src/mesa/drivers/dri/common/xmlconfig.c
index 0226b38c4fc..77967ac2a43 100644
--- a/src/mesa/drivers/dri/common/xmlconfig.c
+++ b/src/mesa/drivers/dri/common/xmlconfig.c
@@ -765,9 +765,9 @@ static void parseDeviceAttr (struct OptConfData *data, const XML_Char **attr) {
/** \brief Parse attributes of an application element. */
static void parseAppAttr (struct OptConfData *data, const XML_Char **attr) {
GLuint i;
- const XML_Char *name = NULL, *exec = NULL;
+ const XML_Char *exec = NULL;
for (i = 0; attr[i]; i += 2) {
- if (!strcmp (attr[i], "name")) name = attr[i+1];
+ if (!strcmp (attr[i], "name")) /* not needed here */;
else if (!strcmp (attr[i], "executable")) exec = attr[i+1];
else XML_WARNING("unknown application attribute: %s.", attr[i]);
}