From 5e1d3c8b5dff212ced531497a37651571991ddc0 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 5 Jun 2021 10:40:48 +1000 Subject: [PATCH] py/stackctrl: Prevent unused-var warning when stack checking disabled. Signed-off-by: Damien George --- py/stackctrl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/stackctrl.h b/py/stackctrl.h index ff8da0ab1..c21288b2b 100644 --- a/py/stackctrl.h +++ b/py/stackctrl.h @@ -40,7 +40,7 @@ void mp_stack_check(void); #else -#define mp_stack_set_limit(limit) +#define mp_stack_set_limit(limit) (void)(limit) #define MP_STACK_CHECK() #endif