forked from qt-creator/qt-creator
--warnings
This commit is contained in:
@@ -777,7 +777,7 @@ QVector<Token> Preprocessor::tokenize(const QByteArray &text) const
|
|||||||
return tokens;
|
return tokens;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Preprocessor::processInclude(bool skipCurentPath,
|
void Preprocessor::processInclude(bool,
|
||||||
TokenIterator firstToken, TokenIterator lastToken,
|
TokenIterator firstToken, TokenIterator lastToken,
|
||||||
bool acceptMacros)
|
bool acceptMacros)
|
||||||
{
|
{
|
||||||
@@ -786,6 +786,7 @@ void Preprocessor::processInclude(bool skipCurentPath,
|
|||||||
++tk; // skip `include|nclude_next'
|
++tk; // skip `include|nclude_next'
|
||||||
|
|
||||||
if (acceptMacros && tk->is(T_IDENTIFIER)) {
|
if (acceptMacros && tk->is(T_IDENTIFIER)) {
|
||||||
|
// ### TODO: implement me
|
||||||
#if 0
|
#if 0
|
||||||
QByteArray name;
|
QByteArray name;
|
||||||
name.reserve(256);
|
name.reserve(256);
|
||||||
|
@@ -212,7 +212,7 @@ bool CheckExpression::visit(TemplateIdAST *ast)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CheckExpression::visit(NewExpressionAST *ast)
|
bool CheckExpression::visit(NewExpressionAST *)
|
||||||
{
|
{
|
||||||
// ### FIXME
|
// ### FIXME
|
||||||
//FullySpecifiedType exprTy = semantic()->check(ast->expression, _scope);
|
//FullySpecifiedType exprTy = semantic()->check(ast->expression, _scope);
|
||||||
|
@@ -324,6 +324,9 @@ void Scope::addUse(unsigned sourceOffset, Name *name)
|
|||||||
else
|
else
|
||||||
lastVisibleSymbol = _symbols[_symbolCount];
|
lastVisibleSymbol = _symbols[_symbolCount];
|
||||||
_uses[_useCount].init(sourceOffset, name, lastVisibleSymbol);
|
_uses[_useCount].init(sourceOffset, name, lastVisibleSymbol);
|
||||||
|
#else
|
||||||
|
(void) sourceOffset;
|
||||||
|
(void) name;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user