/* >>>------------------------------------------------------------ * * File: rule_8.2.c, Module: M2CM-3.2-QAC-8.1.2 * * RULE 8.2 (Required): * Whenever an object or function is declared or defined, its type * shall be explicitly stated. * * Implemented by messages: * 2050 The 'int' type specifier has been omitted from a * function declaration. * * 2051 The 'int' type specifier has been omitted from an object * declaration. * * <<<------------------------------------------------------------ */ /* PRQA S 2984 ++ */ #include "misra.h" #include "m2cmex.h" static test_0802a( void ); /* MISRA Violation */ static const sc = 5; /* MISRA Violation */ extern test_0802( void ) /* MISRA Violation */ { S16 r; r = sc + test_0802a(); return r; } static test_0802a( void ) /* MISRA Violation */ { return sc + 1; }