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

SR:  11.2#4

Synopsis:Identifiers with internal linkage (static) must have complete type
Language:C
Severity Level:3
Category:SCOPE AND LINKAGE


Description:
This leads to undefined behaviour.

Example:

static struct record	field;
...
Here no definition has been given for the structure with tag 'record' and so the 'field' identifier is deemed to have incomplete type.