From c636b734b39e863e9b309bacc0eae3951ab41c4e Mon Sep 17 00:00:00 2001 From: firewave Date: Mon, 5 Feb 2024 01:08:24 +0100 Subject: [PATCH] checkcondition.cpp: suppress `accessMoved` selfcheck false positive --- lib/checkcondition.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/checkcondition.cpp b/lib/checkcondition.cpp index 1900015b77e..2da672083de 100644 --- a/lib/checkcondition.cpp +++ b/lib/checkcondition.cpp @@ -1318,6 +1318,7 @@ void CheckCondition::checkIncorrectLogicOperator() const std::string text = cond1str + " " + tok->str() + " " + cond2str; incorrectLogicOperatorError(tok, text, alwaysTrue, inconclusive, std::move(errorPath)); } else if (printStyle && (firstTrue || secondTrue)) { + // cppcheck-suppress accessMoved - TODO: FP - see #12174 const int which = isfloat ? sufficientCondition(std::move(op1), not1, d1, std::move(op2), not2, d2, isAnd) : sufficientCondition(std::move(op1), not1, i1, std::move(op2), not2, i2, isAnd); std::string text; if (which != 0) {