suppress msvc 'conditional expression is constant' warnings