mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
xmlconfig: remove an unused-but-set variable
I hate gcc 4.6 already.
This commit is contained in:
parent
036fb07908
commit
7854b8cb16
1 changed files with 2 additions and 2 deletions
|
|
@ -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]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue