/* >>>------------------------------------------------------------ * * File: rule_16.1.c, Module: M2CM-3.2-QAC-8.1.2 * * RULE 16.1 (Required): * Functions shall not be defined with a variable number of * arguments. * * Implemented by message: * 1337 Function defined with a variable number of parameters. * * <<<------------------------------------------------------------ */ /* PRQA S 2984 ++ */ #include "misra.h" #include "m2cmex.h" static S16 test_1601a( S16 n, ... ); extern S16 test_1601( void ) { S16 r; r = test_1601a( 2, "tom", "dick" ); r = r + test_1601a( 1, "harry" ); return r; } static S16 test_1601a( S16 n, ... ) /* MISRA Violation */ { return n; }