Solved: is not a cppcheck problem! Some source directories are not compiled but are present in the source tree. cppcheck scan them and found errors. Sorry for this false alarm Thankyou
Then: I confirm the problem with cppcheck version 2.7 on Linux (cppcheck-2.7-1.el7.x86_64) . Program compiles fine, but cppcheck seem does not resolve the macro.
strange behaviour: with a simple main and an header file cppcheck (windows) does not show errors. I must check my configuration.
Macro is defined in an header file included by source file
Hi, this is the problem. I define a macro like this: #define NIPQUAD(addr) \ ((unsigned char *)&addr)[0], ((unsigned char *)&addr)[1], ((unsigned char *)&addr)[2], ((unsigned char *)&addr)[3] And then I use the macro in printf: printf("ip = %u.%u.%u.%u\n", NIPQUAD(ip_rs)); cppcheck show an ERROR like this: error wrongPrintfScanfArgNum "printf format string requires 4 parameters but only 1 are given"
Well. Correct from youserf. Open lib/tkcon.tcl On line 43 replace $tcl_version with...
Well. Correct from youserf. Open lib/tkcon.tcl On line 43 replace $tcl_version with...
Virus? I use Avast, too. No virus found in x86 .exe and x64 .msi