Skip to content

Commit

Permalink
arm: Silence unused_unsafe warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith committed Dec 26, 2024
1 parent e83e618 commit 1d17896
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cpu/arm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ pub(super) mod featureflags {
});
let detected = detected & !filtered;
let merged = ARMCAP_STATIC | detected;
// SAFETY: https://github.com/rust-lang/rust/issues/125833
// TODO(MSRV 1.82.0): Remove `unsafe`.
#[allow(unused_unsafe)]
let p = unsafe { ptr::addr_of_mut!(OPENSSL_armcap_P) };
// SAFETY: This is the only writer. Any concurrent reading doesn't
// affect the safety of this write.
Expand All @@ -199,7 +200,8 @@ pub(super) mod featureflags {
}

pub(super) fn get(_cpu_features: cpu::Features) -> u32 {
// SAFETY: https://github.com/rust-lang/rust/issues/125833
// TODO(MSRV 1.82.0): Remove `unsafe`.
#[allow(unused_unsafe)]
let p = unsafe { ptr::addr_of!(OPENSSL_armcap_P) };

// SAFETY: Since only `get_or_init()` could have created
Expand Down

0 comments on commit 1d17896

Please sign in to comment.