Fixed checkio.cpp warning in #2123.
This commit is contained in:
parent
f98179a835
commit
57ade25099
|
@ -98,8 +98,8 @@ void CheckIO::checkFileUsage()
|
||||||
std::map<unsigned int, Filepointer> filepointers;
|
std::map<unsigned int, Filepointer> filepointers;
|
||||||
|
|
||||||
const SymbolDatabase* symbolDatabase = _tokenizer->getSymbolDatabase();
|
const SymbolDatabase* symbolDatabase = _tokenizer->getSymbolDatabase();
|
||||||
unsigned int varListSize = symbolDatabase->getVariableListSize();
|
size_t varListSize = symbolDatabase->getVariableListSize();
|
||||||
for (unsigned int i = 1; i < varListSize; i++) {
|
for (size_t i = 1; i < varListSize; ++i) {
|
||||||
const Variable* var = symbolDatabase->getVariableFromVarId(i);
|
const Variable* var = symbolDatabase->getVariableFromVarId(i);
|
||||||
if (!var || !var->varId() || !Token::Match(var->typeStartToken(), "FILE *"))
|
if (!var || !var->varId() || !Token::Match(var->typeStartToken(), "FILE *"))
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -564,7 +564,7 @@ public:
|
||||||
return bool(classAndStructTypes.find(type) != classAndStructTypes.end());
|
return bool(classAndStructTypes.find(type) != classAndStructTypes.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
const Variable *getVariableFromVarId(unsigned int varId) const {
|
const Variable *getVariableFromVarId(size_t varId) const {
|
||||||
return _variableList[varId];
|
return _variableList[varId];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue