Skip to content

Commit 34b87f6

Browse files
committed
fixed unmatchedSuppression selfcheck warnings
1 parent 9468d1c commit 34b87f6

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

lib/checkclass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3041,7 +3041,6 @@ void CheckClass::checkCopyCtorAndEqOperator()
30413041
{
30423042
// This is disabled because of #8388
30433043
// The message must be clarified. How is the behaviour different?
3044-
// cppcheck-suppress unreachableCode - remove when code is enabled again
30453044
if ((true) || !mSettings->severity.isEnabled(Severity::warning)) // NOLINT(readability-simplify-boolean-expr)
30463045
return;
30473046

lib/valueflow.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,6 @@ static void setTokenValue(Token* tok,
789789
}
790790
} else if (!value.isImpossible()) {
791791
// is condition only depending on 1 variable?
792-
// cppcheck-suppress[variableScope] #8541
793792
nonneg int varId = 0;
794793
bool ret = false;
795794
visitAstNodes(parent->astOperand1(),

0 commit comments

Comments
 (0)