Skip to content

Commit

Permalink
Address latest nightly warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasili Novikov committed Jan 17, 2024
1 parent 51ea191 commit 5b2d147
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ipc-queue/src/fifo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ unsafe fn _sanity_check_with_id() {
let _: [u8; size_of::<fortanix_sgx_abi::WithId<()>>()] = [0u8; size_of::<UserSafeWithId<()>>()];
}

// `usize` is not `UserSafeSized` and thus cannot be used to copy data to/from userspace.
#[cfg(target_env = "sgx")]
#[allow(dead_code)] // Dead code analysis goes wrong here due to type casts; it's important that
// `WrapUsize` has the same size as `usize`, even though it is not read
#[repr(transparent)]
#[derive(Copy, Clone)]
struct WrapUsize(usize);
Expand Down

0 comments on commit 5b2d147

Please sign in to comment.