News for hackers. Stuff that matters.
Re:Android Project Changeset 4f8b683: libc/memset.c by jey on Tuesday May 25, 2010 @08:39PM (#1379154)
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.
Re:Android Project Changeset 4f8b683: libc/memset.c by wvenable on Tuesday May 25, 2010 @10:04PM (#1379296)
What's with all the unused function parameters? Shouldn't that be an edge case?
Re:Android Project Changeset 4f8b683: libc/memset.c by tedunangst on Tuesday May 25, 2010 @10:21PM (#1379326)
Just about every callback interface takes a function pointer where the function expects a void * argument. Half the time it's not needed.
Re:Android Project Changeset 4f8b683: libc/memset.c by kelnos on Wednesday May 26, 2010 @06:04AM (#1379929)
If the void * is the last parameter, just leave it off your implementation of the callback function.