[previous] MISRA-C:2004  Rule  16.4:  (Required) [next] The identifiers used in the declaration and definition of a function shall be identical.

Example Code:


/* PRQA S 2983,3203 ++ */
#include "misra.h"
#include "m2cmex.h"

static S16 test_1604a(S16 aa);

extern S16 test_1604( void )
{
    S16 (*pfx)(S16 a);
    pfx = &test_1604a;

    return 1;
}

static S16 test_1604a(S16 aaa)                  /* MISRA Violation */
{
    return aaa;
}


QAC messages that encompass this guideline:

1330 The parameter identifiers in this function declaration differ from those in a previous declaration.



(c) The Motor Industry Research Association, 2004
QA C Source Code Analyser 8.1.2
MISRA-C:2004 Compliance Module 3.2
© 2013 Programming Research
www.programmingresearch.com
Personality Groups | Glossary | Message Index | MISRA-C:2004 Rule Index Contents