MISRA.FUNC.UNUSEDPAR.2012Unused parameters in functions.
MISRA C 2012 Rule 2.7: There should be no unused parameters in functionsCategory: Advisory Analysis: Decidable, Single Translation Unit Applies to: C90, C99 RationaleMost functions will be specified as using each of their parameters. If a function parameter is unused, it is possible that the implementation of the function does not match its specification. This rule highlights such potential mismatches. Examplevoid withunusedpara ( uint1 6_t *para1, int16_t unusedpara ) /* Non-compliant - unused */ { *para1 = 42U; } |