[previous] MISRA C:2012  Rule-2.6:  (Advisory) [next] A function should not contain unused label declarations

Example Code:


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

extern int16_t rule_0206( void )
{
    int16_t i;
    int16_t j;

L1: i = s16a;                           /* 3202 */

L2: j = s16b;                           /* 3202 */

    return i + j;
}


QAC messages that encompass this guideline:

3202 The label '%s:' is not used in this function and could be removed.



(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