Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is a function parameter “used” if cast to void?
#1
Does the following violate rule 2.7 (There should be no unused parameters in functions)?
Code:
void fn ( int32_t param )
{
   ( void )param;
}
Posted by and on behalf of the MISRA C Working Group


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)