Skip to content

Commit

Permalink
dead code suppression
Browse files Browse the repository at this point in the history
  • Loading branch information
snogge committed Jun 12, 2024
1 parent 4772df2 commit dcb5eef
Show file tree
Hide file tree
Showing 27 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/unix/bsd/apple/b32/align.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
s_no_extra_traits! {
#[allow(missing_debug_implementations)]
#[repr(align(16))]
#[allow(dead_code)]
pub struct max_align_t {
priv_: [f64; 2]
}
Expand Down
1 change: 1 addition & 0 deletions src/unix/bsd/apple/b64/aarch64/align.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ pub type mcontext_t = *mut __darwin_mcontext64;

s_no_extra_traits! {
#[allow(missing_debug_implementations)]
#[allow(dead_code)]
pub struct max_align_t {
priv_: f64
}
Expand Down
1 change: 1 addition & 0 deletions src/unix/bsd/apple/b64/x86_64/align.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
s_no_extra_traits! {
#[allow(missing_debug_implementations)]
#[repr(align(16))]
#[allow(dead_code)]
pub struct max_align_t {
priv_: [f64; 2]
}
Expand Down
2 changes: 2 additions & 0 deletions src/unix/bsd/apple/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1095,6 +1095,7 @@ s! {
}

#[repr(align(8))]
#[allow(dead_code)]
pub struct tcp_connection_info {
pub tcpi_state: u8,
pub tcpi_snd_wscale: u8,
Expand Down Expand Up @@ -1234,6 +1235,7 @@ s_no_extra_traits! {
__opaque: [u8; __PTHREAD_COND_SIZE__],
}

#[allow(dead_code)]
pub struct sockaddr_storage {
pub ss_len: u8,
pub ss_family: ::sa_family_t,
Expand Down
1 change: 1 addition & 0 deletions src/unix/linux_like/android/b32/arm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ s_no_extra_traits! {
uc_sigmask64: ::sigset64_t,
}

#[allow(dead_code)]
pub struct ucontext_t {
pub uc_flags: ::c_ulong,
pub uc_link: *mut ucontext_t,
Expand Down
1 change: 1 addition & 0 deletions src/unix/linux_like/android/b32/x86/align.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
s_no_extra_traits! {
#[allow(missing_debug_implementations)]
#[repr(align(8))]
#[allow(dead_code)]
pub struct max_align_t {
priv_: [f64; 2]
}
Expand Down
1 change: 1 addition & 0 deletions src/unix/linux_like/android/b32/x86/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ s_no_extra_traits! {
uc_sigmask64: ::sigset64_t,
}

#[allow(dead_code)]
pub struct ucontext_t {
pub uc_flags: ::c_ulong,
pub uc_link: *mut ucontext_t,
Expand Down
3 changes: 3 additions & 0 deletions src/unix/linux_like/android/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ s! {
__f_reserved: [u32; 6],
}

#[allow(dead_code)]
pub struct signalfd_siginfo {
pub ssi_signo: u32,
pub ssi_errno: i32,
Expand Down Expand Up @@ -547,6 +548,7 @@ s! {
}

s_no_extra_traits! {
#[allow(dead_code)]
pub struct sockaddr_nl {
pub nl_family: ::sa_family_t,
nl_pad: ::c_ushort,
Expand Down Expand Up @@ -578,6 +580,7 @@ s_no_extra_traits! {
_align: [usize; 0],
}

#[allow(dead_code)]
pub struct lastlog {
ll_time: ::time_t,
ll_line: [::c_char; UT_LINESIZE],
Expand Down
1 change: 1 addition & 0 deletions src/unix/linux_like/linux/gnu/b32/arm/align.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
s_no_extra_traits! {
#[allow(missing_debug_implementations)]
#[repr(align(8))]
#[allow(dead_code)]
pub struct max_align_t {
priv_: [i64; 2]
}
Expand Down
1 change: 1 addition & 0 deletions src/unix/linux_like/linux/gnu/b32/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ s! {
pub _f: [::c_char; 8],
}

#[allow(dead_code)]
pub struct semid_ds {
pub sem_perm: ipc_perm,
#[cfg(target_arch = "powerpc")]
Expand Down
1 change: 1 addition & 0 deletions src/unix/linux_like/linux/gnu/b32/x86/align.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
s_no_extra_traits! {
#[allow(missing_debug_implementations)]
#[repr(align(16))]
#[allow(dead_code)]
pub struct max_align_t {
priv_: [f64; 6]
}
Expand Down
2 changes: 2 additions & 0 deletions src/unix/linux_like/linux/gnu/b32/x86/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ s! {
pub xss: ::c_long,
}

#[allow(dead_code)]
pub struct user {
pub regs: user_regs_struct,
pub u_fpvalid: ::c_int,
Expand Down Expand Up @@ -240,6 +241,7 @@ s! {
}

s_no_extra_traits! {
#[allow(dead_code)]
pub struct user_fpxregs_struct {
pub cwd: ::c_ushort,
pub swd: ::c_ushort,
Expand Down
1 change: 1 addition & 0 deletions src/unix/linux_like/linux/gnu/b64/aarch64/align.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
s_no_extra_traits! {
#[allow(missing_debug_implementations)]
#[repr(align(16))]
#[allow(dead_code)]
pub struct max_align_t {
priv_: [f32; 8]
}
Expand Down
1 change: 1 addition & 0 deletions src/unix/linux_like/linux/gnu/b64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ s! {
__glibc_reserved5: u64,
}

#[allow(dead_code)]
pub struct semid_ds {
pub sem_perm: ipc_perm,
pub sem_otime: ::time_t,
Expand Down
1 change: 1 addition & 0 deletions src/unix/linux_like/linux/gnu/b64/powerpc64/align.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
s_no_extra_traits! {
#[allow(missing_debug_implementations)]
#[repr(align(16))]
#[allow(dead_code)]
pub struct max_align_t {
priv_: [i64; 4]
}
Expand Down
1 change: 1 addition & 0 deletions src/unix/linux_like/linux/gnu/b64/x86_64/align.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
s_no_extra_traits! {
#[allow(missing_debug_implementations)]
#[repr(align(16))]
#[allow(dead_code)]
pub struct max_align_t {
priv_: [f64; 4]
}
Expand Down
2 changes: 2 additions & 0 deletions src/unix/linux_like/linux/gnu/b64/x86_64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ s! {
pub gs: ::c_ulonglong,
}

#[allow(dead_code)]
pub struct user {
pub regs: user_regs_struct,
pub u_fpvalid: ::c_int,
Expand Down Expand Up @@ -270,6 +271,7 @@ s! {
}

s_no_extra_traits! {
#[allow(dead_code)]
pub struct user_fpregs_struct {
pub cwd: ::c_ushort,
pub swd: ::c_ushort,
Expand Down
1 change: 1 addition & 0 deletions src/unix/linux_like/linux/gnu/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ s! {
pub options: ::__u32,
}

#[allow(dead_code)]
pub struct iocb {
pub aio_data: ::__u64,
#[cfg(target_endian = "little")]
Expand Down
2 changes: 2 additions & 0 deletions src/unix/linux_like/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ s! {
pub dqb_valid: u32,
}

#[allow(dead_code)]
pub struct signalfd_siginfo {
pub ssi_signo: u32,
pub ssi_errno: i32,
Expand Down Expand Up @@ -1054,6 +1055,7 @@ cfg_if! {
}
}
s_no_extra_traits! {
#[allow(dead_code)]
pub struct sockaddr_nl {
pub nl_family: ::sa_family_t,
nl_pad: ::c_ushort,
Expand Down
1 change: 1 addition & 0 deletions src/unix/linux_like/linux/musl/b32/arm/align.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
s_no_extra_traits! {
#[allow(missing_debug_implementations)]
#[repr(align(8))]
#[allow(dead_code)]
pub struct max_align_t {
priv_: (i64, i64)
}
Expand Down
1 change: 1 addition & 0 deletions src/unix/linux_like/linux/musl/b32/x86/align.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
s_no_extra_traits! {
#[allow(missing_debug_implementations)]
#[repr(align(8))]
#[allow(dead_code)]
pub struct max_align_t {
priv_: [f64; 3]
}
Expand Down
3 changes: 3 additions & 0 deletions src/unix/linux_like/linux/musl/b32/x86/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ s! {
pub f_spare: [::c_ulong; 4],
}

#[allow(dead_code)]
pub struct mcontext_t {
__private: [u32; 22]
}
Expand Down Expand Up @@ -157,6 +158,7 @@ s! {
}

s_no_extra_traits! {
#[allow(dead_code)]
pub struct user_fpxregs_struct {
pub cwd: ::c_ushort,
pub swd: ::c_ushort,
Expand All @@ -173,6 +175,7 @@ s_no_extra_traits! {
padding: [::c_long; 56],
}

#[allow(dead_code)]
pub struct ucontext_t {
pub uc_flags: ::c_ulong,
pub uc_link: *mut ucontext_t,
Expand Down
1 change: 1 addition & 0 deletions src/unix/linux_like/linux/musl/b64/aarch64/align.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
s_no_extra_traits! {
#[allow(missing_debug_implementations)]
#[repr(align(16))]
#[allow(dead_code)]
pub struct max_align_t {
priv_: [f32; 8]
}
Expand Down
3 changes: 3 additions & 0 deletions src/unix/linux_like/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ s! {
pub ifa_data: *mut ::c_void
}

#[allow(dead_code)]
pub struct in6_rtmsg {
rtmsg_dst: ::in6_addr,
rtmsg_src: ::in6_addr,
Expand Down Expand Up @@ -225,6 +226,7 @@ s_no_extra_traits! {
pub sun_path: [::c_char; 108]
}

#[allow(dead_code)]
pub struct sockaddr_storage {
pub ss_family: sa_family_t,
#[cfg(target_pointer_width = "32")]
Expand All @@ -243,6 +245,7 @@ s_no_extra_traits! {
pub domainname: [::c_char; 65]
}

#[allow(dead_code)]
pub struct sigevent {
pub sigev_value: ::sigval,
pub sigev_signo: ::c_int,
Expand Down
1 change: 1 addition & 0 deletions src/unix/newlib/generic.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! Common types used by most newlib platforms

s! {
#[allow(dead_code)]
pub struct sigset_t {
__val: [::c_ulong; 16],
}
Expand Down
1 change: 1 addition & 0 deletions src/unix/newlib/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ s! {
pub domainname: [::c_char; 65]
}

#[allow(dead_code)]
pub struct cpu_set_t { // Unverified
bits: [u32; 32],
}
Expand Down
1 change: 1 addition & 0 deletions src/windows/gnu/align.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ cfg_if! {
s_no_extra_traits! {
#[allow(missing_debug_implementations)]
#[repr(align(16))]
#[allow(dead_code)]
pub struct max_align_t {
priv_: [f64; 4]
}
Expand Down

0 comments on commit dcb5eef

Please sign in to comment.