Fix build with gcc-4.8+ and unused-parameter error

Signed-off-by: Paul Beeler <sparksco@gmail.com>