Fix MSVC warning about an unreferenced variable