16-06-2015, 12:10 PM
I have a header file MISRA_8.6.h, in which a variable is declared:
And I have the corresponding c-file MISRA_8.6.c, which uses the variable as input.
The c-file defining the variable is out of scope. Is rule 8.6 violated by this setting or is another rule 8.x violated?
Code:
extern signed short int Variable;
And I have the corresponding c-file MISRA_8.6.c, which uses the variable as input.
Code:
#include "MISRA_8.6.h"
signed short int A;
void main(void)
{
/*8.6*/
A = Variable;
}
The c-file defining the variable is out of scope. Is rule 8.6 violated by this setting or is another rule 8.x violated?
<t></t>