--warnings

This commit is contained in:
Roberto Raggi
2009-02-16 18:56:20 +01:00
parent b15dec9de1
commit f63b8e6693
4 changed files with 21 additions and 17 deletions

View File

@@ -777,7 +777,7 @@ QVector<Token> Preprocessor::tokenize(const QByteArray &text) const
return tokens;
}
void Preprocessor::processInclude(bool skipCurentPath,
void Preprocessor::processInclude(bool,
TokenIterator firstToken, TokenIterator lastToken,
bool acceptMacros)
{
@@ -786,6 +786,7 @@ void Preprocessor::processInclude(bool skipCurentPath,
++tk; // skip `include|nclude_next'
if (acceptMacros && tk->is(T_IDENTIFIER)) {
// ### TODO: implement me
#if 0
QByteArray name;
name.reserve(256);

View File

@@ -212,7 +212,7 @@ bool CheckExpression::visit(TemplateIdAST *ast)
return false;
}
bool CheckExpression::visit(NewExpressionAST *ast)
bool CheckExpression::visit(NewExpressionAST *)
{
// ### FIXME
//FullySpecifiedType exprTy = semantic()->check(ast->expression, _scope);

View File

@@ -324,6 +324,9 @@ void Scope::addUse(unsigned sourceOffset, Name *name)
else
lastVisibleSymbol = _symbols[_symbolCount];
_uses[_useCount].init(sourceOffset, name, lastVisibleSymbol);
#else
(void) sourceOffset;
(void) name;
#endif
}