diff --git a/libraries/AP_HAL/Semaphores.h b/libraries/AP_HAL/Semaphores.h index 7cfef6dfb3..b8ce982a4f 100644 --- a/libraries/AP_HAL/Semaphores.h +++ b/libraries/AP_HAL/Semaphores.h @@ -8,8 +8,8 @@ class AP_HAL::Semaphore { public: - virtual bool take(uint32_t timeout_ms) = 0; - virtual bool take_nonblocking() = 0; + virtual bool take(uint32_t timeout_ms) WARN_IF_UNUSED = 0 ; + virtual bool take_nonblocking() WARN_IF_UNUSED = 0; virtual bool give() = 0; };