From c818ba4365ffec56c05bdef31c689ac8fe03d0eb Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Sun, 3 Mar 2024 14:57:04 +0100 Subject: [PATCH] disable most verbose warnings in MSVC They are very noisy and not very useful. the list of warnings can be found at https://learn.microsoft.com/en-us/cpp/preprocessor/compiler-warnings-that-are-off-by-default Same as https://github.com/Matroska-Org/libebml/commit/f9af4fd060443d5ebbf615999863d77ced56bdc3 --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index af7c3866..8267ba5e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,7 +37,8 @@ if(DEV_MODE) add_cxx_flag_if_supported(-Wno-error=unused-command-line-argument -Wall -Wextra -Wpedantic -Wfatal-errors -fstack-protector-strong -Wno-self-assign - -Wcast-align) + -Wcast-align + -W4) endif() set(libmatroska_SOURCES