Skip to content

Commit

Permalink
allow unreachable code in feature detection
Browse files Browse the repository at this point in the history
  • Loading branch information
rklaehn committed Apr 24, 2024
1 parent b53781c commit 623374a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/platform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ pub fn avx2_detected() -> bool {

#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
#[inline(always)]
#[allow(unreachable_code)]
pub fn sse41_detected() -> bool {
// A testing-only short-circuit.
if cfg!(feature = "no_sse41") {
Expand Down

0 comments on commit 623374a

Please sign in to comment.