Synopsis: | All array types shall be complete by the end of the compilation unit |
Language: | C |
Severity Level: | 1 |
Category: | EXTERNAL DECLARATIONS |
Description: |
The specified array is considered an incomplete type as the sizing definition is not present.
Example: A size of one is assumed and this element initialised to zero. The ANSI committee have agreed that this is the intent of the standard. Amend the code such that either an array size or an array initialiser list is specified.int array[]; /* at file scope */ ... /* no subsequent size definition */ |