fixed a build error due to an unused variable breaking the build since our coding standard
is to ensure building with -Werror,-Wunused-variable