From ad2a523cf9d39191d54f4dda3c99f22b5bade7de Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Thu, 27 Jul 2017 15:15:19 -0500 Subject: [PATCH] fix yet another warning on ARMv6-M --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index b1cc0bdb49..802d5037fd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -94,7 +94,7 @@ where pub unsafe fn claim( data: T, ceiling: u8, - nvic_prio_bits: u8, + _nvic_prio_bits: u8, t: &mut Threshold, f: F, ) -> R @@ -108,13 +108,13 @@ where #[cfg(not(armv6m))] () => { - let max_priority = 1 << nvic_prio_bits; + let max_priority = 1 << _nvic_prio_bits; if ceiling == max_priority { atomic(t, |t| f(data, t)) } else { let old = basepri::read(); - let hw = (max_priority - ceiling) << (8 - nvic_prio_bits); + let hw = (max_priority - ceiling) << (8 - _nvic_prio_bits); basepri::write(hw); let ret = f(data, &mut Threshold::new(ceiling)); basepri::write(old);