![]() |
![]() |
0672 | ![]() |
||||
![]() | |||||||
| Explicitly undefined | REFERENCE - ISO:C90-6.5.7 Initialization - Semantics | ||||||
This initializer for a struct, union or array is not enclosed in braces. For example:
/*PRQA S 750,753,759,2017,2205,2213,3120,3122,3132,3211,3408,3448,3629 ++*/
typedef struct _t {
int x;
int y;
} TT;
typedef union _u1 {
int x;
float f;
} U1;
TT st1 = {1, 2}; /* */
TT st2 = 1; /* Message 0672 and 0693 */
U1 un1 = {1}; /* */
U1 un2 = 1; /* Message 0672 */
int arr1[3] = {1, 2, 3}; /* */
int arr2[3] = 1, 2, 3 ; /* Message 0672 and others XXXX */
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |