I am running into a suspected FP when checking this piece of code with Cppcheck 2.6 MISRA addon:
extern void func1 ( void ); void func1 ( void ) { /* Compliant */ }
This is flagged as MISRA rule 8.4 violation:
test.c:1:13: style: A compatible declaration shall be visible when an object or function with external linkage is defined [misra-c2012-8.4] extern void func1 ( void ); ^
However this code is an example of compliant code copied directly from MISRA standard section on rule 8.4.
hmm.. I can reproduce with cppcheck-2.6 but not with latest cppcheck git head.
Log in to post a comment.
I am running into a suspected FP when checking this piece of code with Cppcheck 2.6 MISRA addon:
This is flagged as MISRA rule 8.4 violation:
However this code is an example of compliant code copied directly from MISRA standard section on rule 8.4.
hmm.. I can reproduce with cppcheck-2.6 but not with latest cppcheck git head.