20-04-2011, 08:27 AM
Although the rule is worded in terms of declarations, the intention is that it should apply to all prototypes. A declaration of a function pointer should specify the parameter names, for example:
Any type-casts to function pointer types should also specify the parameter names in the prototype.
Code:
void (*pt2Function)(int size);
Any type-casts to function pointer types should also specify the parameter names in the prototype.
Posted by and on behalf of the MISRA C Working Group