![]() |
![]() |
0708 | ![]() |
||||
![]() | |||||||
| Constraint violations | REFERENCE - ISO:C90-6.6.6.1 The goto Statement - Constraints | ||||||
This is a constraint error This label has been referred to in a 'goto' statement but has not been found in the current function. Perhaps there has been a spelling mistake. For example:
/*PRQA S 2001,2015,2017,2200,2201,3227,3408 ++*/
extern void foo(int x, int y)
{
if (!x)
{
goto labela;
}
if (x==y)
{
goto label_a;
}
if (y != 0)
{
label_a:
return;
}
} /* Message 0708 */
MISRA C:2012 Rules applicable to message 0708:
| Rule-1.1 (Required) | The program shall contain no violations of the standard C syntax and constraints, and shall not exceed the implementation's translation limits |
![]() | ||
| 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 |