Use `flag_if_supported` instead of `flag` when compiling liblmdb

Signed-off-by: Victor Porof <victor.porof@gmail.com>
without.crypto
Victor Porof 5 years ago
parent a07f50b398
commit bd45823f11
  1. 2
      lmdb-sys/build.rs

@ -79,7 +79,7 @@ fn main() {
.define("MDB_IDL_LOGN", Some(MDB_IDL_LOGN.to_string().as_str()))
.file(lmdb.join("mdb.c"))
.file(lmdb.join("midl.c"))
.flag("-Wno-unused-parameter")
.flag_if_supported("-Wno-unused-parameter")
.compile("liblmdb.a")
}

Loading…
Cancel
Save