aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/platform.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/platform.rs b/src/platform.rs
index 00058b1..ef910aa 100644
--- a/src/platform.rs
+++ b/src/platform.rs
@@ -327,6 +327,7 @@ impl Platform {
#[cfg(blake3_avx512_ffi)]
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
#[inline(always)]
+#[allow(unreachable_code)]
pub fn avx512_detected() -> bool {
// A testing-only short-circuit.
if cfg!(feature = "no_avx512") {
@@ -349,6 +350,7 @@ pub fn avx512_detected() -> bool {
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
#[inline(always)]
+#[allow(unreachable_code)]
pub fn avx2_detected() -> bool {
// A testing-only short-circuit.
if cfg!(feature = "no_avx2") {
@@ -371,6 +373,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") {