aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-04-11 15:56:59 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:16 -0300
commite3019fc3e235bee97447a80f0ec9424d3171898c (patch)
tree8f0040f55331cd5ba73f0a8e126e8548bc941426
parent2ee4fa594678cfd2e3b874ef7235d410e6126da0 (diff)
Remove GCC 4.6 warnings on abstractmetabuilder.cpp and parser.cpp
abstractmetabuilder.cpp:1792:9: warning: variable ‘firstDefaultArgument’ set but not used [-Wunused-but-set-variable] parser.cpp:2136:17: warning: variable ‘global_scope’ set but not used [-Wunused-but-set-variable]
-rw-r--r--abstractmetabuilder.cpp4
-rw-r--r--parser/parser.cpp2
2 files changed, 0 insertions, 6 deletions
diff --git a/abstractmetabuilder.cpp b/abstractmetabuilder.cpp
index e07801af..bfd27232 100644
--- a/abstractmetabuilder.cpp
+++ b/abstractmetabuilder.cpp
@@ -1789,7 +1789,6 @@ AbstractMetaFunction* AbstractMetaBuilder::traverseFunction(FunctionModelItem fu
}
AbstractMetaArgumentList metaArguments;
- int firstDefaultArgument = 0;
for (int i = 0; i < arguments.size(); ++i) {
ArgumentModelItem arg = arguments.at(i);
@@ -1841,9 +1840,6 @@ AbstractMetaFunction* AbstractMetaBuilder::traverseFunction(FunctionModelItem fu
}
metaArg->setDefaultValueExpression(expr);
- if (expr.isEmpty())
- firstDefaultArgument = i;
-
if (metaArg->type()->isEnum() || metaArg->type()->isFlags())
m_enumDefaultArguments << QPair<AbstractMetaArgument *, AbstractMetaFunction *>(metaArg, metaFunction);
diff --git a/parser/parser.cpp b/parser/parser.cpp
index d65d5f3e..e7d663ff 100644
--- a/parser/parser.cpp
+++ b/parser/parser.cpp
@@ -2133,9 +2133,7 @@ bool Parser::parsePtrToMember(PtrToMemberAST *&node)
std::size_t start = token_stream.cursor();
- std::size_t global_scope = 0;
if (token_stream.lookAhead() == Token_scope) {
- global_scope = token_stream.cursor();
token_stream.nextToken();
}