diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-21 19:49:55 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-21 19:49:55 -0500 |
commit | eaca023d5379bcf8f31a7a83ded985fe1565fc58 (patch) | |
tree | b17033622b955c1294f5fa98e47ea6fa4a7edf95 /rust-src/bch_bindgen | |
parent | 596ec1050d0ce55f5e2d38aa8cdcb46d92178140 (diff) |
Silence a few rust build warnings
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'rust-src/bch_bindgen')
-rw-r--r-- | rust-src/bch_bindgen/build.rs | 1 | ||||
-rw-r--r-- | rust-src/bch_bindgen/src/btree.rs | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/rust-src/bch_bindgen/build.rs b/rust-src/bch_bindgen/build.rs index 819b337e..79337a0f 100644 --- a/rust-src/bch_bindgen/build.rs +++ b/rust-src/bch_bindgen/build.rs @@ -36,6 +36,7 @@ fn main() { .clang_arg("-DZSTD_STATIC_LINKING_ONLY") .clang_arg("-DNO_BCACHEFS_FS") .clang_arg("-D_GNU_SOURCE") + .clang_arg("-DRUST_BINDGEN") .clang_arg("-fkeep-inline-functions") .derive_debug(true) .derive_default(true) diff --git a/rust-src/bch_bindgen/src/btree.rs b/rust-src/bch_bindgen/src/btree.rs index c8203a42..09e86b34 100644 --- a/rust-src/bch_bindgen/src/btree.rs +++ b/rust-src/bch_bindgen/src/btree.rs @@ -7,7 +7,6 @@ use crate::printbuf_to_formatter; use std::fmt; use std::marker::PhantomData; use std::mem::MaybeUninit; -use std::ptr; use bitflags::bitflags; pub struct BtreeTrans<'f> { |