mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 07:33:34 +08:00
fix macos compile issues (#22173)
* fix macos compile issues * remove unused variable
This commit is contained in:
@@ -48,13 +48,13 @@ int hrt_work_queue(struct work_s *work, worker_t worker, void *arg, uint32_t usd
|
||||
void hrt_work_cancel(struct work_s *work);
|
||||
|
||||
static inline void hrt_work_lock(void);
|
||||
static inline void hrt_work_lock()
|
||||
static inline void hrt_work_lock(void)
|
||||
{
|
||||
px4_sem_wait(&_hrt_work_lock);
|
||||
}
|
||||
|
||||
static inline void hrt_work_unlock(void);
|
||||
static inline void hrt_work_unlock()
|
||||
static inline void hrt_work_unlock(void)
|
||||
{
|
||||
px4_sem_post(&_hrt_work_lock);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user