[previous] 0708 [next] [C] No definition found for the label '%s' in this function.
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 */

QA·C Source Code Analyser 8.1.2
© 2013 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index Contents