From 3732603e5587ff0a5c42cdbae237374da55c43b8 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 c48f716a8f34..ffb83818c7cc 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) {