Falki
(Martin Falkner)
1
SonarQube version 9.6.1.59531 on Windows.
SonarScanner 4.7.0.2747.
When casting size_t to int (or other int like type) I get the positive:
Redundant casts should not be used[cpp:S1905]
On Windows 32-bit, this might be true, but on 64-bit it is needed.
This should be treated as platform specific.
Colin
(Colin)
2
Hey there.
I’ve moved your post to the section on reporting false-positives.
Please have a look at this post and update your thread:
I would also ask that you make sure you can still reproduce the issue on SonarQube v9.9 LTS. SonarQube v9.6 is not supported anymore.