[previous] 0659 [next] [C] The identifier '%s' was not given in the parameter list.
Constraint violations REFERENCE - ISO:C90-6.7.1 Function Definitions - Constraints

This is a constraint error

This old style function definition is invalid. A parameter has been declared which is not in the "parameter-list".

For example:


/*PRQA S 1304,3002,3206,3408,3625 ++*/

int foo(a)             /* Function has a single parameter - "a"     */
int a;
char b;                /* Message 0659 - where did "b" come from ?! */
{
    return 1;
}


MISRA C:2012 Rules applicable to message 0659:

Rule-1.1  (Required) The program shall contain no violations of the standard C syntax and constraints, and shall not exceed the implementation's translation limits


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