Consider the following code:
QByteArray message = QByteArrayLiteral("Test1"); message += QByteArrayLiteral("Test2"); QVERIFY2(2 >= 0, message.constData());
This produces two (!) cppchekc warnings:
"Variable 'message' is assigned a value that is never used. (CWE-563)"
I would expect no warning at all.
Lukas Sommer
Thanks for reporting, fixed by https://github.com/danmar/cppcheck/pull/4683
Thanks a lot for the quick fix!
Log in to post a comment.
Consider the following code:
This produces two (!) cppchekc warnings:
"Variable 'message' is assigned a value that is never used. (CWE-563)"
I would expect no warning at all.
Lukas Sommer
Thanks for reporting, fixed by https://github.com/danmar/cppcheck/pull/4683
Thanks a lot for the quick fix!