4 ms·
The unused function parameter warning is usually one of the most annoying and least useful. I routinely compile with "-Wall -Wno-unused" because I don't want to
by jey 16y ago
The unused function parameter warning is usually one of the most annoying and least useful. I routinely compile with "-Wall -Wno-unused" because I don't want to litter my code with casts to void.
- wvenable 16y agoWhat's with all the unused function parameters? Shouldn't that be an edge case?
- tedunangst 16y agoJust about every callback interface takes a function pointer where the function expects a void * argument. Half the time it's not needed.
- kelnos 16y agoIf the void * is the last parameter, just leave it off your implementation of the callback function.