Hi,
i've saved the output from my project analysis with cppcheck 1.74 and instantly compared it to the output of 1.75 after the update.
With 1.75 there now are many false positives regarding unused functions, for example:
<errorid="unusedFunction"severity="style"msg="The function 'clock_init' is never used."verbose="The function 'clock_init' is never used."cwe="561"><locationfile="E:\my_project\source\clock.c"line="89"/></error>
I've tried to make a very simple version but there the false positives don't occurr.
My call to cppcheck looks like this:
All the global functions are declared in according header files and included in the .c files where they get called or are defined.
Cppcheck 1.74 doesn't report these false positives.
Any idea what has introduced this with 1.75?
Best Regards
Sebastian
Last edit: versat 2016-08-08
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I know there is a ticket somewhere .. where an #error caused a FP unused function .. and that was very hard to see why there was a FP. Do you have #error in your code?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
i've saved the output from my project analysis with cppcheck 1.74 and instantly compared it to the output of 1.75 after the update.
With 1.75 there now are many false positives regarding unused functions, for example:
I've tried to make a very simple version but there the false positives don't occurr.
My call to cppcheck looks like this:
All the global functions are declared in according header files and included in the .c files where they get called or are defined.
Cppcheck 1.74 doesn't report these false positives.
Any idea what has introduced this with 1.75?
Best Regards
Sebastian
Last edit: versat 2016-08-08
I would guess it's somehow related to the preprocessor.
maybe the configurations that are checked are somewhat different.
I know there is a ticket somewhere .. where an #error caused a FP unused function .. and that was very hard to see why there was a FP. Do you have #error in your code?
Yes i have some #error in the code.
I've commented all #error away but it doesn't change the output.