/* >>>------------------------------------------------------------ * * File: rule_8.1.c, Module: M2CM-3.2-QAC-8.1.2 * * RULE 8.1 (Required): * Functions shall have prototype declarations and the prototype * shall be visible at both the function definition and call. * * Implemented by messages: * 3002 Defining '%s()' with an identifier list and separate * parameter declarations is an obsolescent feature. * * 3335 No function declaration. Implicit declaration inserted: * 'extern int %s();'. * * 3450 Function '%s', with internal linkage, is being defined * without a previous declaration. * * <<<------------------------------------------------------------ */ /* PRQA S 3210 ++ */ #include "misra.h" #include "m2cmex.h" static S16 test_0801a( a ) /* MISRA Violation Rule 8.1 */ S16 a; { return a; } extern S16 test_0801( void ) { S16 r; r = test_0801a( 1 ); r = r + test_0801b( ); /* MISRA Violation Rule 8.1 */ return r; }