Seeing this false positive on aarch64 with cppcheck 2.16:
double d = 1; printf("%i", int(d));
test.cxx:5:3: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] printf("%i", int(d)); ^
Do you pass an explicit platform? The FP also happens with --platform=unix64-unsigned.
--platform=unix64-unsigned
I filed https://trac.cppcheck.net/ticket/13363 about this.
Thanks. No, I did not specify an explicit platform.
Log in to post a comment.
Seeing this false positive on aarch64 with cppcheck 2.16:
Do you pass an explicit platform? The FP also happens with
--platform=unix64-unsigned
.I filed https://trac.cppcheck.net/ticket/13363 about this.
Thanks. No, I did not specify an explicit platform.