[previous] 0680 [next] [u] Array element is 'void' or an incomplete 'struct' or 'union'. Arrays cannot be constructed from incomplete types.
Implicitly undefined REFERENCE - ISO:C90-6.1.2.5 Types

This type describes an array which is being constructed from elements of incomplete type. This is not allowed.

For example:


/*PRQA S 553,2017,3132,3210,3447,3684 ++*/

extern struct ST1 sta[5];    /* Message 0680 and 3313 - element type is incomplete struct */
extern union  UN1 una[5];    /* Message 0680 and 3313 - element type is incomplete union  */
extern void       var[5];    /* Message 0680          - element type is void              */
extern int        buf[5][];  /* Message 0678          - element type is incomplete array  */

See also:

QA·C Source Code Analyser 8.1.2
© 2013 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index Contents