(MSVC) Fix unreferenced variable warning