Compiler warning C4101: unreferenced local variable

Another attempt at fixing this warning. 
http://www.parashift.com/c++-faq-lite/const-ref-alt.html