This commit is contained in:
orbitcowboy 2015-01-07 08:30:17 +01:00
commit cd98471398
1 changed files with 2 additions and 1 deletions

View File

@ -196,8 +196,9 @@ void CheckUnusedFunctions::parseTokens(const Tokenizer &tokenizer, const char Fi
if (funcname) {
FunctionUsage &func = _functions[ funcname->str()];
const std::string called_from_file = tokenizer.list.getSourceFilePath();
if (func.filename.empty() || func.filename == "+")
if (func.filename.empty() || func.filename == "+" || func.filename != called_from_file)
func.usedOtherFile = true;
else
func.usedSameFile = true;