[previous] MISRA C:2012  Rule-15.1:  (Advisory) [next] The goto statement should not be used

Example Code:


#include "misra.h"
#include "m3cmex.h"

extern int16_t rule_1501( void )
{
   goto mylabel;                        /* 2001 */

mylabel:

   return 1;
}


QAC messages that encompass this guideline:

2001 A 'goto' statement has been used.



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