![]() |
![]() |
0596 | ![]() |
||||
![]() | |||||||
| Switch statements | |||||||
The value of this case label expression is too large to be able to match the controlling expression of the switch statement. The case label will be unreachable. For example:
/*PRQA S 1-9999 ++*/
/*PRQA S 596, 2880 --*/
extern int x;
void foo( signed char c )
{
switch ( c )
{
case 100:
--x;
break;
case 200: /* Messages 596 and 2880 */
++x;
break;
default:
x = 0;
break;
}
}
See also:
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |