[previous] 0623 [next] [U] '%s' has incomplete type and no linkage - this is undefined.
Explicitly undefined REFERENCE - ISO:C90-6.5 Declarations - Semantics

An object with no linkage is being defined with an incomplete type. This is meaningless. An object can never be defined if its size is unknown.

For example:


/*PRQA S 2017,3205,3408,3684 ++*/

extern void foo(void)
{
    int buf[];                        /* Message 0623 */
}


MISRA C:2012 Rules applicable to message 0623:

Rule-1.3  (Required) There shall be no occurrence of undefined or critical unspecified behaviour


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