From f7a0e368820ae21a7d3b4820afed1d6e7dd2c8ec Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Fri, 29 Jan 2016 13:24:55 +0300 Subject: [PATCH] Fixed unused variable in STM32 baremetal driver --- .../driver/include/uavcan_stm32/thread.hpp | 21 +++++++------------ 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/libuavcan_drivers/stm32/driver/include/uavcan_stm32/thread.hpp b/libuavcan_drivers/stm32/driver/include/uavcan_stm32/thread.hpp index 3ad7dfe53f..ab7d25cc23 100644 --- a/libuavcan_drivers/stm32/driver/include/uavcan_stm32/thread.hpp +++ b/libuavcan_drivers/stm32/driver/include/uavcan_stm32/thread.hpp @@ -136,34 +136,29 @@ public: (void)can_driver; } - bool wait(uavcan::MonotonicDuration duration) + bool wait(uavcan::MonotonicDuration) { - bool lready = ready; - return __atomic_exchange_n (&lready, false, __ATOMIC_SEQ_CST); + (void)duration; + bool lready = ready; + return __atomic_exchange_n (&lready, false, __ATOMIC_SEQ_CST); } void signal() { - __atomic_store_n (&ready, true, __ATOMIC_SEQ_CST); + __atomic_store_n (&ready, true, __ATOMIC_SEQ_CST); } void signalFromInterrupt() { - __atomic_store_n (&ready, true, __ATOMIC_SEQ_CST); + __atomic_store_n (&ready, true, __ATOMIC_SEQ_CST); } }; class Mutex { public: - void lock() - { - - }; - void unlock() - { - - }; + void lock() { } + void unlock() { } }; #endif