diff options
author | Alex Crichton <alex@alexcrichton.com> | 2015-09-15 20:56:16 -0700 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2015-09-15 20:56:16 -0700 |
commit | 7b28c271d6797f77718b78cdb5f5c425f2de254b (patch) | |
tree | b7fe1ec59e6bf3c3d38185e6644c34be64a15305 /libc-test | |
parent | 2c57e36e1230e7a37d2f3ffbf2563d423245e199 (diff) | |
download | rust-libc-7b28c271d6797f77718b78cdb5f5c425f2de254b.tar.gz |
Fix build on MSVC
Diffstat (limited to 'libc-test')
-rw-r--r-- | libc-test/build.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs index 4fd85222a3..7c995d0487 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -317,7 +317,8 @@ fn main() { 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("/wd4996") // don't warn about deprecated functions + .flag("/wd4296"); // don't warn about '<' being always false } else { cfg.flag("-Wall").flag("-Wextra").flag("-Werror") .flag("-Wno-unused-parameter") @@ -416,8 +417,9 @@ impl<'a> TestGenerator<'a> { fn test_sign(&mut self, rust: &str, c: &str) { match c { - "float" | + "LARGE_INTEGER" | "mach_timebase_info_data_t" | + "float" | "double" => return, n if n.starts_with("pthread") => return, _ => {} |