![]() |
![]() |
2880 | ![]() |
||||
![]() | |||||||
| Control flow | |||||||
This statement will never be executed. Perhaps this is the result of a mistake in some previous logic ? For example:
/*PRQA S 2017,3120,3201,3227,3356,3359,3408 ++*/
int foo(int m)
{
int r = 0;
if (m > 10)
{
if (m < 5) /* 2992 2996 */
{
r = 1; /* 2880 */ /* unreachable */
}
}
return r;
}
MISRA-C:2004 Rules applicable to message 2880:
| Rule 14.1 (Required) | There shall be no unreachable code. |
![]() | ||
| QA·C Source Code Analyser 8.1
MISRA-C:2004 Compliance Module 3.2 © 2012 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | MISRA-C:2004 Rule Index | Contents |