Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jey
on May 26, 2010
|
parent
|
context
|
favorite
| on:
Android Project Changeset 4f8b683: libc/memset.c
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
on May 26, 2010
[–]
What's with all the unused function parameters? Shouldn't that be an edge case?
tedunangst
on May 26, 2010
|
parent
[–]
Just about every callback interface takes a function pointer where the function expects a void * argument. Half the time it's not needed.
kelnos
on May 26, 2010
|
root
|
parent
[–]
If the void * is the last parameter, just leave it off your implementation of the callback function.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: