Compatibility fix for gcc 4.5
This commit is contained in:
parent
3c5777fbc6
commit
dbe962ad5d
|
@ -835,7 +835,7 @@ void CheckUnusedVar::checkFunctionVariableUsage_iterateScopes(const Scope* const
|
||||||
}
|
}
|
||||||
|
|
||||||
// templates
|
// templates
|
||||||
if (tok->isName() && tok->str().back() == '>') {
|
if (tok->isName() && endsWith(tok->str(), '>')) {
|
||||||
// TODO: This is a quick fix to handle when constants are used
|
// TODO: This is a quick fix to handle when constants are used
|
||||||
// as template parameters. Try to handle this better, perhaps
|
// as template parameters. Try to handle this better, perhaps
|
||||||
// only remove constants.
|
// only remove constants.
|
||||||
|
|
Loading…
Reference in New Issue