In a code I'm dealing with, I've seen following statements, at the beginning of a function:
I've seen that the (void) nr; is there to prevent the compiler from complaining of not using the variable 'nr' inside the function. That's fine, but I do not understand why.
In general, in C, what does then (void) someVar; do?
Code:
static isr_t
myIsr(vector_number nr)
{
(void) nr;
// [...]
}
In general, in C, what does then (void) someVar; do?
Comment