Compiler warning C4101: unreferenced local variable

Another attempt at fixing this warning. 
Ah, right, I was confused with `std::exception & const`, which is nonsense.