[previous] 3337 [next] The array '%s[]' is defined with a single element because no size has been specified.
Declarations and definitions REFERENCE - ISO:C90-6.7.2-TC1 External Object Definitions

This array declaration is a tentative definition but it has incomplete type.

This is not good practice but an array size of one is assumed and the single element is implicitly initialized to zero in the normal way. The code should be amended by supplying an explicit array size or an array initializer list.

For example:


/*PRQA S 2017,3120,3211,3408,3684 ++*/

int  array [ ];                              /* Message 3337 */


No MISRA C:2012 Rules applicable to message 3337


QA·C Source Code Analyser 8.1
MISRA C:2012 Compliance Module 1.0
© 2012 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index | MISRA C:2012 Rule Index Contents