From 6183dbd0ceefdbff42d30e6691fa9948a695e9af Mon Sep 17 00:00:00 2001 From: hathach Date: Fri, 27 Sep 2019 00:15:43 +0700 Subject: add -Wextra for more warnings to example non-stack warning (probably mcu driver) should be suppressed in the board.mk --- src/osal/osal_none.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/osal') diff --git a/src/osal/osal_none.h b/src/osal/osal_none.h index 7780345df..fa581215d 100644 --- a/src/osal/osal_none.h +++ b/src/osal/osal_none.h @@ -145,6 +145,8 @@ typedef osal_queue_def_t* osal_queue_t; // lock queue by disable usb isr static inline void _osal_q_lock(osal_queue_t qhdl) { + (void) qhdl; + #if TUSB_OPT_DEVICE_ENABLED if (qhdl->role == OPT_MODE_DEVICE) dcd_int_disable(TUD_OPT_RHPORT); #endif @@ -157,6 +159,8 @@ static inline void _osal_q_lock(osal_queue_t qhdl) // unlock queue static inline void _osal_q_unlock(osal_queue_t qhdl) { + (void) qhdl; + #if TUSB_OPT_DEVICE_ENABLED if (qhdl->role == OPT_MODE_DEVICE) dcd_int_enable(TUD_OPT_RHPORT); #endif -- cgit v1.3.1