From 690f32c2988261baa407fe590750c2ae0f3c16c9 Mon Sep 17 00:00:00 2001 From: Arkadiy Paronyan Date: Wed, 11 Oct 2017 09:55:10 +0200 Subject: [PATCH] Fixed build warnings (#6664) * Fixed build warnings * Suppress warning * Suppress warning for sure --- dapps/js-glue/src/codegen.rs | 1 + util/hash/build.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dapps/js-glue/src/codegen.rs b/dapps/js-glue/src/codegen.rs index 3d8c93460..c6e948820 100644 --- a/dapps/js-glue/src/codegen.rs +++ b/dapps/js-glue/src/codegen.rs @@ -101,6 +101,7 @@ fn implement_webapp(cx: &ExtCtxt, builder: &aster::AstBuilder, item: &Item, push let files_impl = quote_item!(cx, impl $type_name { + #[allow(unused_mut)] fn files() -> ::std::collections::HashMap<&'static str, File> { let mut files = ::std::collections::HashMap::new(); $statements diff --git a/util/hash/build.rs b/util/hash/build.rs index 2370855fe..fe7965a61 100644 --- a/util/hash/build.rs +++ b/util/hash/build.rs @@ -21,6 +21,6 @@ extern crate gcc; fn main() { - gcc::compile_library("libtinykeccak.a", &["src/tinykeccak.c"]); + gcc::Build::new().file("src/tinykeccak.c").compile("libtinykeccak.a"); }