Skip to content

Commit

Permalink
Switch MSVC from /Wall to /W4
Browse files Browse the repository at this point in the history
Apparently 4 is recommended by Microsoft!

https://msdn.microsoft.com/en-us/library/thxezb7y.aspx
  • Loading branch information
alexcrichton committed Aug 22, 2017
1 parent faec391 commit 5cbb921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5cbb921

Please sign in to comment.