I don't know problem in CPPcheck rule violation.
In funcs.h
, I wrote code this way:
extern void fvCalcul_Speed(void) ;
In funcs.c
#include "funcs.h"
void fvCalcul_Speed(void)
{
/*Declare*/
// 1. Mot
float rpm_Mot_v ; //DW MISRA C(12.3)
float vs_Mot_v ;
static float rpm_Mot_v_Filt ;
}
I wrote code this way, but detect violation Rule 8.4 (A compatible declaration shall be visible when an object or function with external linkage is defined).
What's causing this problem?