Hello cppcheck team, Cppcheck Premium 26.6.0 reports 8.9 for a static variable that is used in one function and also in an initialiser in the same file. Rule 8.9 applies only when the variable only appears in a function. The command I run is cppcheck --premium=misra-c-2025 --std=c99 misra_8_9_fp.c The checker appears to count only references inside functions and to ignore references in initialisers in the same file. I use a trial license sent to our colleague Diogo for tool evaluation. The attached...
Hello cppcheck team, The attached file has 4 simple functions to reproduce a false positive of the rule 17.8. I ran cppcheck using the following command cppcheck.exe --premium=misra-c-2025 --std=c99 misra_17_8_fp.c It shows the checker flags any write through a pointer parameter as if the parameter itself had changed. MISRA C Rule 17.8 is about modifying the parameter; writing to the object it points to is explicitly allowed. I use a trial license my colleague Diogo sent to the rest of the embedded...