[previous] 3650 [next] Typedef defines an array type of unknown size.
Declarations and definitions

A typedef of this form is allowed in ISO:C but was not always supported by old compilers. Message 3651 is produced when the typedef name is used.

For example:


/*PRQA S 2017,2213,3120,3211,3408,3448,3674 ++*/


    typedef int ARRAY[];                  /* Message 3650 */
    ARRAY x = { 1, 2, 3 };                /* Message 3651 */

/* This sequence is equivalent to the following ...
 *
 *  int x[] = { 1, 2, 3 };
 *
 */

See also:

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