[previous] 0620 [next] [C] Cannot initialize '%s' because it has unknown size.
Constraint violations REFERENCE - ISO:C90-6.5.7 Initialization - Constraints

This is a constraint error

This is a tentative definition. The object has to be implicitly initialized (to zero) but it can't be, because the struct/union is of incomplete type, i.e. its members and therefore its size have not been defined.

For example:


/*PRQA S 679,2213,3211,3313,3408 ++*/

struct ST1 ast;          /* Message 0620 - if ST1 is not defined */

See also:

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