Skip to content

Commit

Permalink
Ignore a few more windows msvc warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Sep 17, 2015
1 parent 4fb81c4 commit 6ac333e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,14 @@ impl TestGenerator {

if target.contains("msvc") {
cfg.flag("/W3").flag("/Wall").flag("/WX")
.flag("/wd4820") // weird warning about adding padding?
.flag("/wd4100") // don't warn about unused parameters
.flag("/wd4996") // don't warn about deprecated functions
.flag("/wd4296"); // don't warn about '<' being always false
// ignored warnings
.flag("/wd4820") // warning about adding padding?
.flag("/wd4100") // unused parameters
.flag("/wd4996") // deprecated functions
.flag("/wd4296") // '<' being always false
.flag("/wd4255") // converting () to (void)
.flag("/wd4668") // using an undefined thing in preprocessor?
;
} else {
cfg.flag("-Wall").flag("-Wextra").flag("-Werror")
.flag("-Wno-unused-parameter")
Expand Down

0 comments on commit 6ac333e

Please sign in to comment.