Fix some "unused variable" warnings.

Why not use ARG_UNUSED instead ?
Casting to void is kinda a lame way to fake the same result: any half-way decent compiler can see it's not a real use.