![]() |
![]() |
3203 | ![]() |
||||
![]() | |||||||
| Redundancy | |||||||
This variable is redundant and could be removed, Although a value is assigned to it, the value is never used so the assignment is also redundant. For example:
/*PRQA S 1-9999 ++*/
/*PRQA S 3203, 3205, 2982, 2983 --*/
extern void foo(void)
{
int v1; /* Message 3203 */
int v2; /* Message 3203 */
int v3 = 0; /* Message 3205 */
v2 = 0; /* Message 2982 */
v1 = 0; /* Message 2983 */
v2 = 1; /* Message 2983 */
}
See also:
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |