AP_HAL: mark semaphore take operations as WARN_IF_UNUSED

this prevents common bugs
This commit is contained in:
Andrew Tridgell 2013-01-09 20:42:02 +11:00
parent 90523ae975
commit e76c77e86a
1 changed files with 2 additions and 2 deletions

View File

@ -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;
};