![]() |
![]() |
0436 | ![]() |
||||
![]() | |||||||
| Constraint violations | REFERENCE - ISO:C90-6.3.2.3 Structure and union members | ||||||
This is a constraint error The identifier on the left of the '.' operator does not refer to an object of 'struct' or 'union' type. For example:
/*PRQA S 2213,2216,3120,3199,3203,3408,3447 ++*/
struct ST {int width; int range;};
extern struct ST value;
extern int valub;
void foo(void)
{
valua.range = 5; /* Message 0436 and also 0434 - 'valua' is a misspelling */
valub.range = 5; /* Message 0436 - 'valub' is an int */
value.range = 5; /* OK - correct spelling */
}
See also:
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |