From ad79ca05e9245fef1d7e9aba2aadc81ecae364ee Mon Sep 17 00:00:00 2001 From: Eric Seppanen Date: Tue, 6 Jul 2021 16:26:47 -0700 Subject: [PATCH] suppress nullptr warnings on auto-generated bindgen unit tests Hopefully, this will be addressed upstream before too long; see rust-bindgen issue #1651. --- postgres_ffi/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/postgres_ffi/src/lib.rs b/postgres_ffi/src/lib.rs index e7553721b2..88128bb7df 100644 --- a/postgres_ffi/src/lib.rs +++ b/postgres_ffi/src/lib.rs @@ -1,6 +1,9 @@ #![allow(non_upper_case_globals)] #![allow(non_camel_case_types)] #![allow(non_snake_case)] +// suppress warnings on rust 1.53 due to bindgen unit tests. +// https://github.com/rust-lang/rust-bindgen/issues/1651 +#![allow(deref_nullptr)] include!(concat!(env!("OUT_DIR"), "/bindings.rs")); pub mod controlfile_utils;