TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
TIOBE - C Coding Standard
Search

SR:  11.2#1

Synopsis:Objects must not have incomplete type and no linkage
Language:C
Severity Level:3
Category:SCOPE AND LINKAGE


Description:
Identifiers with no linkage must not be declared to be something other than an object or function, a function parameter or a block scoped identifier without an explicit 'extern' storage-class specifier. The behaviour is undefined.This occurs when an identifier with incomplete type occurs without linkage.

Example:

...
{
void v;
...
}

Example:

...
{
struct record field;
...
}