/* >>>------------------------------------------------------------ * * File: rule_15.5.c, Module: M2CM-3.2-QAC-8.1.2 * * RULE 15.5 (Required): * Every switch statement shall have at least one case clause. * * Implemented by message: * 3315 This 'switch' statement contains only a single path - it * is redundant. * * <<<------------------------------------------------------------ */ /* PRQA S 2984 ++ */ #include "misra.h" #include "m2cmex.h" extern S16 test_1505( void ) { S16 x = 0; switch ( s16a ) { default: ++x; break; } /* MISRA Violation */ x = x + s16b; return x; }