Fixed build warnings (#6664)
* Fixed build warnings * Suppress warning * Suppress warning for sure
This commit is contained in:
parent
e3fa460374
commit
690f32c298
@ -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
|
||||||
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user