minor tweak. use isNotLibraryFunction in Library to prevent false matches

This commit is contained in:
Daniel Marjamäki 2015-08-15 16:48:30 +02:00
parent c72047f6f5
commit 7bb9d2d2f3
1 changed files with 2 additions and 1 deletions

View File

@ -800,7 +800,8 @@ bool Library::isNotLibraryFunction(const Token *ftok) const
bool Library::isUseRetVal(const Token* ftok) const
{
return (_useretval.find(functionName(ftok)) != _useretval.end());
return (!isNotLibraryFunction(ftok) &&
_useretval.find(functionName(ftok)) != _useretval.end());
}
bool Library::isnoreturn(const Token *ftok) const