![]() |
![]() |
0467 | ![]() |
||||
![]() | |||||||
| Constraint violations | REFERENCE - ISO:C90-6.3.3.3 Unary Arithmetic Operators - Constraints | ||||||
This is a constraint error Check the type of the operand. The operand of the logical negation operator '!' must be of scalar type. For example:
/*PRQA S 3198,3199,2213,3203,3408,3447,3600,3617 ++*/
struct ST { int x; };
extern struct ST field;
extern int *p;
extern int g;
void foo(void)
{
int r;
r = !field; /* Message 0467 */
r = !p; /* OK */
r = !g; /* OK */
}
See also:
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |