diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2018-08-29 18:50:46 -0400 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2018-08-30 05:48:40 -0400 |
| commit | 902e6e2ee6542ce63932dca78ea27130be5d8948 (patch) | |
| tree | 6b2e366344221781cdd6fdac05422c9cd052fa00 /build_extra | |
| parent | b2cd71ddce7b776800ec00e6286ad891cb286110 (diff) | |
Fix warnings.
Ref #374
Diffstat (limited to 'build_extra')
| -rw-r--r-- | build_extra/flatbuffers/rust/BUILD.gn | 1 | ||||
| -rw-r--r-- | build_extra/rust/BUILD.gn | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/build_extra/flatbuffers/rust/BUILD.gn b/build_extra/flatbuffers/rust/BUILD.gn index 92e3e6e71..dd4a5c64c 100644 --- a/build_extra/flatbuffers/rust/BUILD.gn +++ b/build_extra/flatbuffers/rust/BUILD.gn @@ -2,4 +2,5 @@ import("//build_extra/rust/rust.gni") rust_crate("flatbuffers") { source_root = "//third_party/flatbuffers/rust/flatbuffers/src/lib.rs" + args = [ "-Aunused_variables" ] # TODO Remove this. } diff --git a/build_extra/rust/BUILD.gn b/build_extra/rust/BUILD.gn index 6cc239fc8..6873195b2 100644 --- a/build_extra/rust/BUILD.gn +++ b/build_extra/rust/BUILD.gn @@ -69,6 +69,7 @@ rust_crate("cfg_if") { rust_crate("sha1") { source_root = "$registry_github/sha1-0.6.0/src/lib.rs" + args = [ "-Aunused_parens" ] # https://github.com/mitsuhiko/rust-sha1/issues/36 } rust_crate("tempfile") { @@ -259,6 +260,11 @@ rust_crate("iovec") { rust_crate("lazycell") { source_root = "$registry_github/lazycell-0.6.0/src/lib.rs" + args = [ + # TODO Remove these: + "-Aunused_unsafe", + "-Aunused_mut", + ] } rust_crate("net2") { @@ -367,6 +373,11 @@ rust_crate("hyper") { ":tokio_timer", ":want", ] + args = [ + # TODO Remove these. + "-Adeprecated", + "-Aunused_imports", + ] } rust_crate("tokio_core") { |
