Since cppcheck doesn't complain about the other lines I'm guessing that it has something to do with the large numbers, aka as if cppcheck doesn't handle them as 64-bit unsigned.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The above code produces this cppcheck error (tested with 2.2):
Since cppcheck doesn't complain about the other lines I'm guessing that it has something to do with the large numbers, aka as if cppcheck doesn't handle them as 64-bit unsigned.
This doesn't reproduce with 2.3 in C mode, but maybe the macro UINT64_C should be defined somewhere?
Ah the warning disappears with -I /usr/include/ , assumed for some reason that cppcheck would check /usr/include by default.
With this modified code, I get the warnings shown above. Note that 10000000000000000000 is still less than UINT64_MAX = 18446744073709551615.
Ticket is here: https://trac.cppcheck.net/ticket/10150