fix clang compile error from unused variables on osx
Merge pull request #608 from taybin/osx_compile_fix

fix clang compile error from unused variables on osx

Reviewed by jdoliner.