diff options
| author | hathach <[email protected]> | 2019-09-27 00:15:43 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-09-27 00:15:43 +0700 |
| commit | 6183dbd0ceefdbff42d30e6691fa9948a695e9af (patch) | |
| tree | ee2660cfb05f002990a16ff69beea96271a09629 /src/osal | |
| parent | 7ba8e818527eca1c16946ef8f58a0cde807fb3f3 (diff) | |
add -Wextra for more warnings to example
non-stack warning (probably mcu driver) should be suppressed in the
board.mk
Diffstat (limited to 'src/osal')
| -rw-r--r-- | src/osal/osal_none.h | 4 |
1 files changed, 4 insertions, 0 deletions
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
|
