From d380c15f8b3047ebe8156884a6afbd3221f1ca79 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Wed, 8 Mar 2023 15:37:26 +0100 Subject: [PATCH] Only expose context_checks module in debug builds This gets rid of some unused warnings. --- src/wrapper/util.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wrapper/util.rs b/src/wrapper/util.rs index f05656ad..76094c81 100644 --- a/src/wrapper/util.rs +++ b/src/wrapper/util.rs @@ -5,6 +5,7 @@ use std::os::raw::c_char; use crate::util::permit_alloc; +#[cfg(debug_assertions)] pub(crate) mod context_checks; /// The bit that controls flush-to-zero behavior for denormals in 32 and 64-bit floating point