![]() |
![]() |
3426 | ![]() |
||||
![]() | |||||||
| Redundancy | |||||||
The right hand operand of this comma operator is redundant. It generates no side effects and its value is not used. What is the intention ? For example:
/*PRQA S 2017,3199,3203,3227,3408,3417,3440 ++*/
extern void foo(int p, int j)
{
int n;
n = (++p, j + 1); /* OK */
++p, j + 1; /* Message 3426 */
}
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |