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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, this is the problem.
I define a macro like this:
And then I use the macro in printf:
cppcheck show an ERROR like this:
error wrongPrintfScanfArgNum "printf format string requires 4 parameters but only 1 are given"
Is the macro visible at the location of the
printf()
call?There is no FP for
Macro is defined in an header file included by source file
strange behaviour: with a simple main and an header file cppcheck (windows) does not show errors. I must check my configuration.
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.
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