[previous] MISRA C:2012  Rule-17.8:  (Advisory) [next] A function parameter should not be modified

Example Code:


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

static int16_t rule_1708a(int16_t p);

extern int16_t rule_1708( void )
{
    s16a = rule_1708a(5);

    return 1;
}

static int16_t rule_1708a(int16_t p)
{
    ++p;                                        /*      */      /* Not compliant */

    return(p);
}


No QAC messages cover this rule.



(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