diff --git a/CMakeLists.txt b/CMakeLists.txt index 14aff86b27..f7e6945fae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -156,6 +156,7 @@ if (CXX_CLANG_CL) $<$:-Wno-reserved-identifier> $<$:-Wno-deprecated-declarations> $<$:-Wno-cast-function-type-mismatch> + $<$:-Wno-c99-extensions> $<$:/EHsc>) # REQUIRED CPU features IN Windows-amd64 if (ARCHITECTURE_x86_64) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ab493d21ca..cd9b1e93c9 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -169,21 +169,6 @@ else() $<$:-Wno-unused-parameter> $<$:-Wno-missing-field-initializers>) - if (MSVC) - add_compile_options( - $<$:-Wno-c++17-compat> - $<$:-Wno-c++11-compat-reserved-user-defined-literal> - $<$:-Wno-c++11-compat-deprecated-writable-strings> - $<$:-Wno-c++11-compat-pedantic> - $<$:-Wno-c++11-compat> - $<$:-Wno-c++0x-compat> - $<$:-Wno-c++98-c++11-compat-binary-literal> - $<$:-Wno-c++98-compat-pedantic> - $<$:-Wno-c++98-compat> - $<$:-Wno-c99-compat> - $<$:-Wno-c98-compat>) - endif() - if (CXX_CLANG OR CXX_ICC OR CXX_APPLE) # Clang, AppleClang, or Intel C++ if (NOT MSVC) add_compile_options(