[previous] 1334 [next] The parameter identifiers in the prototypes of these functions/function pointers are different.
Functions

The names of parameters in this function pointer are different from those in another function declarator with which it must be compatible.

It is good practice to be consistent in the use of function parameter names. If parameter names differ, it could indicate some incompatibility in the specification of the function(s).

For example:


/*PRQA S 2017,3198,3199,3203,3206,3447,3672 ++*/

extern void foo ( int tom, long dick);

extern void (*pfx)(int tom, long derek);
extern void (*pfy)(int tom, long donald);

extern void foo ( int tom, long dick)
{
    pfy = pfx;                                                  /* Message 1334 */

    pfx = &foo;                                                 /* Message 1334 */
}


No MISRA-C:2004 Rules applicable to message 1334


QA·C Source Code Analyser 8.1
MISRA-C:2004 Compliance Module 3.2
© 2012 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index | MISRA-C:2004 Rule Index Contents