[previous] 0628 [next] [C] '%s' has different type to previous declaration at wider scope.
Constraint violations REFERENCE - ISO:C90-6.5 Declarations - Constraints

This is a constraint error

This object or function with external linkage has been declared previously at a wider scope with a different type. For example:


/*PRQA S 3205,3210,3211,3221,3222,3408,3447,3625 ++*/

char c;
char f1(void);

void foo(void)
{
    extern int c;                       /* Message 0628 */
    extern int f1(void);                /* Message 0628 */
}


MISRA C:2012 Rules applicable to message 0628:

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