Skip to content

Commit

Permalink
nvpair-sys: fix warning suppression
Browse files Browse the repository at this point in the history
  • Loading branch information
codyps committed Oct 16, 2021
1 parent b5215b8 commit 33a12f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
6 changes: 0 additions & 6 deletions nvpair-sys/generate-bindings
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,4 @@ bindgen "$d/wrapper.h" \
--blacklist-type '_IO_FILE' \
--blacklist-type 'FILE' \
--no-recursive-whitelist \
--raw-line \
'
// workaround for https://github.com/rust-lang/rust-bindgen/issues/1651
#[allow(unknown_lints)]
#[allow(deref_nullptr)]
pub type size_t = ::std::os::raw::c_ulong;' \
-- `pkg-config libzfs_core --cflags` "${CFLAGS[@]}"
6 changes: 0 additions & 6 deletions nvpair-sys/src/bindings.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
/* automatically generated by rust-bindgen 0.59.1 */


// workaround for https://github.com/rust-lang/rust-bindgen/issues/1651
#[allow(unknown_lints)]
#[allow(deref_nullptr)]
pub type size_t = ::std::os::raw::c_ulong;

pub mod boolean_t {
pub type Type = ::std::os::raw::c_uint;
pub const B_FALSE: Type = 0;
Expand Down
4 changes: 4 additions & 0 deletions nvpair-sys/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
// workaround for https://github.com/rust-lang/rust-bindgen/issues/1651
#![allow(unknown_lints)]
#![allow(deref_nullptr)]
pub type size_t = ::std::os::raw::c_ulong;

pub enum __va_list_tag {}

Expand Down

0 comments on commit 33a12f8

Please sign in to comment.