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 10, 2024
1 parent 4772df2 commit f6301b2
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 0 deletions.
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/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/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/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
2 changes: 2 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 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 f6301b2

Please sign in to comment.