From 57eac7dfc33bade2402bf1f569afa5ad8c2e4308 Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Tue, 27 Jul 2021 16:21:13 -0400 Subject: [PATCH] Ignore bindgen warnings until they're fixed upstream We don't have any way of fixing these, and it's not feasible to switch away from bindgen. Ignore the warnings for now. --- boring-sys/src/lib.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/boring-sys/src/lib.rs b/boring-sys/src/lib.rs index 4c783232..b32b9190 100644 --- a/boring-sys/src/lib.rs +++ b/boring-sys/src/lib.rs @@ -15,7 +15,11 @@ use std::convert::TryInto; use std::ffi::c_void; use std::os::raw::{c_char, c_int, c_uint, c_ulong}; -include!(concat!(env!("OUT_DIR"), "/bindings.rs")); +#[allow(deref_nullptr)] // TODO: remove this when https://github.com/rust-lang/rust-bindgen/issues/1651 finally gets fixed +mod generated { + include!(concat!(env!("OUT_DIR"), "/bindings.rs")); +} +pub use generated::*; #[cfg(target_pointer_width = "64")] pub type BN_ULONG = u64;