We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8bf018 commit 8babd82Copy full SHA for 8babd82
1 file changed
lib/checkunusedvar.cpp
@@ -724,7 +724,7 @@ void CheckUnusedVar::checkFunctionVariableUsage_iterateScopes(const Scope* const
724
type = Variables::pointer;
725
else if (mTokenizer->isC() ||
726
i->typeEndToken()->isStandardType() ||
727
- (i->valueType() && i->valueType()->container) &&
+ (i->valueType() && i->valueType()->container) ||
728
mTokenizer->getSymbolDatabase()->isRecordTypeWithoutSideEffects(i->type()) ||
729
mSettings->library.getTypeCheck("unusedvar", i->getTypeName()) == Library::TypeCheck::check)
730
type = Variables::standard;
0 commit comments