![]() |
![]() |
2983 | ![]() |
||||
![]() | |||||||
| Redundancy | |||||||
This assignment appears to be redundant because the value of the object is never used before the end of its lifetime. For example:
/*PRQA S 2017,3199,3408,3447 ++*/
extern int y;
extern int z;
void foo(void)
{
int x = 1;
x = x + y + z; /* 2983 */ /* redundant assignment - the value of x is never used */
return;
}
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |