[previous] MISRA-C:2004  Rule  14.4:  (Required) [next] The goto statement shall not be used.

Example Code:


#include "misra.h"
#include "m2cmex.h"

extern S16 test_1404( void )
{
   goto mylabel;               /* MISRA Violation */

mylabel:

   return 1;
}


QAC messages that encompass this guideline:

2001 A 'goto' statement has been used.



(c) The Motor Industry Research Association, 2004
QA C Source Code Analyser 8.1.2
MISRA-C:2004 Compliance Module 3.2
© 2013 Programming Research
www.programmingresearch.com
Personality Groups | Glossary | Message Index | MISRA-C:2004 Rule Index Contents