From 0f10255cf20df9415cbafa71b1d131af713f4b82 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sun, 11 Aug 2019 16:05:48 +0900 Subject: [PATCH] CMakeLists.txt: suppress some MSVC warnings --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d90b2d886..da38bc780 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,7 +37,9 @@ endif() set(CMAKE_CXX_STANDARD 17) if (MSVC) - add_compile_options(/EHsc /W4) + add_compile_options(/EHsc /W4 + /Wd4100 /Wd4242 /Wd4245 /Wd4267 /Wd4365 /Wd4571 /Wd4625 /Wd4626 /Wd4820 + /Wd5026 /Wd5027) else() foreach (FLAG all "" pedantic extra error=return-type no-unused-parameter no-gnu-zero-variadic-macro-arguments) CHECK_CXX_COMPILER_FLAG("-W${FLAG}" WARN_${FLAG}_SUPPORTED)