Fixed build warnings (#6664)

* Fixed build warnings

* Suppress warning

* Suppress warning for sure
This commit is contained in:
Arkadiy Paronyan 2017-10-11 09:55:10 +02:00 committed by GitHub
parent e3fa460374
commit 690f32c298
2 changed files with 2 additions and 1 deletions

View File

@ -101,6 +101,7 @@ fn implement_webapp(cx: &ExtCtxt, builder: &aster::AstBuilder, item: &Item, push
let files_impl = quote_item!(cx, let files_impl = quote_item!(cx,
impl $type_name { impl $type_name {
#[allow(unused_mut)]
fn files() -> ::std::collections::HashMap<&'static str, File> { fn files() -> ::std::collections::HashMap<&'static str, File> {
let mut files = ::std::collections::HashMap::new(); let mut files = ::std::collections::HashMap::new();
$statements $statements

View File

@ -21,6 +21,6 @@
extern crate gcc; extern crate gcc;
fn main() { fn main() {
gcc::compile_library("libtinykeccak.a", &["src/tinykeccak.c"]); gcc::Build::new().file("src/tinykeccak.c").compile("libtinykeccak.a");
} }