![]() |
![]() |
3315 | ![]() |
||||
![]() | |||||||
| Switch statements | REFERENCE - ISO:C90-6.6.4.2 The switch Statement | ||||||
This switch statement is a redundant construct. It contains only a single path For example:
/*PRQA S 2017,3227,3408 ++*/
extern int foo(int n)
{
int r;
switch(n)
{
default:
r = n;
break;
} /* Message 3315 */
return r;
}
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |