From 5cbb921bb6e9f26c5025adebab2e157fc293fd4a Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 22 Aug 2017 12:08:13 -0700 Subject: [PATCH] Switch MSVC from /Wall to /W4 Apparently 4 is recommended by Microsoft! https://msdn.microsoft.com/en-us/library/thxezb7y.aspx --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 2d8e71ea..b9d3580a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -199,7 +199,7 @@ impl ToolFamily { /// What the flags to enable all warnings fn warnings_flags(&self) -> &'static [&'static str] { - static MSVC_FLAGS: &'static [&'static str] = &["/Wall"]; + static MSVC_FLAGS: &'static [&'static str] = &["/W4"]; static GNU_CLANG_FLAGS: &'static [&'static str] = &["-Wall", "-Wextra"]; match *self {