![]() |
![]() |
3202 | ![]() |
||||
![]() | |||||||
| Redundancy | REFERENCE - ISO:C90-6.6.1 Labeled Statements | ||||||
A label that is not used is harmless except that, like any other redundancy in code, it may cause confusion and is best avoided. For example:
/*PRQA S 2006,2015,2017,2201,3227,3408 ++*/
extern int foo(int i, int j)
{
int r = 0;
if (i && j)
{
r = 1;
}
A: return r; /* Message 3202 */
}
MISRA C:2012 Rules applicable to message 3202:
| Rule-2.6 (Advisory) | A function should not contain unused label declarations |
![]() | ||
| QA·C Source Code Analyser 8.1
MISRA C:2012 Compliance Module 1.0 © 2012 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | MISRA C:2012 Rule Index | Contents |