Merge pull request #245 from aleksuss/disable-warnings

Disabled warnings when builds c++ deps
master
Jordan Terrell 6 years ago committed by GitHub
commit 9e15b513bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      librocksdb-sys/build.rs

@ -231,6 +231,7 @@ fn build_zlib() {
} }
} }
compiler.flag_if_supported("-Wno-implicit-function-declaration");
compiler.opt_level(3); compiler.opt_level(3);
compiler.compile("libz.a"); compiler.compile("libz.a");
} }
@ -251,6 +252,7 @@ fn build_bzip2() {
.define("_FILE_OFFSET_BITS", Some("64")) .define("_FILE_OFFSET_BITS", Some("64"))
.define("BZ_NO_STDIO", None); .define("BZ_NO_STDIO", None);
compiler.extra_warnings(false);
compiler.opt_level(3); compiler.opt_level(3);
compiler.compile("libbz2.a"); compiler.compile("libbz2.a");
} }

Loading…
Cancel
Save