From 7f4658a7ee15dc9d6b539905f5e3a9b62f02cd70 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 25 Apr 2016 20:58:22 +0000 Subject: [PATCH] py/modthread: Satisfy unused-args warning. --- py/modthread.c | 1 + 1 file changed, 1 insertion(+) diff --git a/py/modthread.c b/py/modthread.c index fd5932059e..a30be688e4 100644 --- a/py/modthread.c +++ b/py/modthread.c @@ -96,6 +96,7 @@ STATIC mp_obj_t thread_lock_locked(mp_obj_t self_in) { STATIC MP_DEFINE_CONST_FUN_OBJ_1(thread_lock_locked_obj, thread_lock_locked); STATIC mp_obj_t thread_lock___exit__(size_t n_args, const mp_obj_t *args) { + (void)n_args; // unused return thread_lock_release(args[0]); } STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(thread_lock___exit___obj, 4, 4, thread_lock___exit__);