From ed585cfc2225b6526ef993eebc8b1fff16276419 Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Wed, 30 Nov 2022 20:54:40 +0100 Subject: [PATCH] pkg/tinyusb: fix compilation with NDEBUG defined --- pkg/tinyusb/contrib/include/tusb_os_custom.h | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/tinyusb/contrib/include/tusb_os_custom.h b/pkg/tinyusb/contrib/include/tusb_os_custom.h index 930170aade..901dcac784 100644 --- a/pkg/tinyusb/contrib/include/tusb_os_custom.h +++ b/pkg/tinyusb/contrib/include/tusb_os_custom.h @@ -110,6 +110,7 @@ static inline bool osal_mutex_lock(osal_mutex_t mutex_hdl, uint32_t msec) return mutex_lock_cancelable(&_mc) == 0; #else + (void)msec; assert(msec == OSAL_TIMEOUT_WAIT_FOREVER); mutex_lock(mutex_hdl); return true;