Fixes warning about unused variables

A couple of unused variables cause the build to error out with `-Wall -Wextra`.