Unused parameter warnings

This silences some compiler warnings about unused parameters.
There is some discussion on the issue here:
http://stackoverflow.com/questions/3599160/unused-parameter-warnings-in-c-code
It seemed fine to me to take the version that is safest but probably only works in gcc, because we are using other gcc specific features as well.
Otherwise the most general thing is apparently the macro solution.