From b9681c861320e7e936d97792a7d2fb09ea883ae9 Mon Sep 17 00:00:00 2001 From: Oleksandr Anyshchenko Date: Tue, 15 Jan 2019 22:02:36 +0200 Subject: [PATCH] Disabled warnings when builds c++ deps --- librocksdb-sys/build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/librocksdb-sys/build.rs b/librocksdb-sys/build.rs index 7eb4d0e..acccadd 100644 --- a/librocksdb-sys/build.rs +++ b/librocksdb-sys/build.rs @@ -231,6 +231,7 @@ fn build_zlib() { } } + compiler.flag_if_supported("-Wno-implicit-function-declaration"); compiler.opt_level(3); compiler.compile("libz.a"); } @@ -251,6 +252,7 @@ fn build_bzip2() { .define("_FILE_OFFSET_BITS", Some("64")) .define("BZ_NO_STDIO", None); + compiler.extra_warnings(false); compiler.opt_level(3); compiler.compile("libbz2.a"); }