[previous] MISRA C:2012  Rule-2.7:  (Advisory) [next] There should be no unused parameters in functions

Example Code:


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

static void rule_0207a(int16_t a, int16_t b);

extern int16_t rule_0207( void )
{
    rule_0207a(1, 2);

    return 1;
}

static void rule_0207a(int16_t a, int16_t b)                    /* 3206 */
{
    s16a = a;
}


QAC messages that encompass this guideline:

3206 The parameter '%s' is not used in this function.



(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