Skip to content

Commit

Permalink
checkcondition.cpp: suppress accessMoved selfcheck false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Feb 5, 2024
1 parent 893aff5 commit c636b73
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/checkcondition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c636b73

Please sign in to comment.