aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-04-07 17:29:41 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:16 -0300
commit988de2f105e30e59c5df649ce6d46f9f66a211d8 (patch)
treecaf06d40331f33449a4fcf3eeb4856329622ce97
parent17f8e2a2435874df7103826641ab46b7761c010a (diff)
Removed warning about unused variable when using gcc 4.6.
-rw-r--r--typesystem.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/typesystem.cpp b/typesystem.cpp
index 843f1826..a3543750 100644
--- a/typesystem.cpp
+++ b/typesystem.cpp
@@ -992,11 +992,8 @@ bool Handler::startElement(const QString &, const QString &n,
}
QString name = attributes["name"];
- bool added = false;
- if (!name.isEmpty() && m_database->supportedApiVersion(since)) {
- added = true;
+ if (!name.isEmpty() && m_database->supportedApiVersion(since))
m_currentEnum->addEnumValueRejection(name);
- }
} break;
case StackElement::ReplaceType: {