Fix build failure on Windows with MSVC

The #warning preprocessor directive is nonstandard.