fix unused-parameter warnings

The makefile deliberately specifies `-Wno-unused-parameter`, but this commit fixes all those warnings.