aboutsummaryrefslogtreecommitdiff
path: root/py/objclosure.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-01-20 12:47:20 +0000
committerDamien George <damien.p.george@gmail.com>2015-01-20 12:47:20 +0000
commitff8dd3f486afb0d6ff1427d8a6a8a8ed73baa660 (patch)
tree16b54a843a312757976e15f24f413e00e151fbe2 /py/objclosure.c
parent50912e7f5dc579fd2917537046793dfa30decadf (diff)
py, unix: Allow to compile with -Wunused-parameter.
See issue #699.
Diffstat (limited to 'py/objclosure.c')
-rw-r--r--py/objclosure.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/objclosure.c b/py/objclosure.c
index 853f0930c..95c1adde0 100644
--- a/py/objclosure.c
+++ b/py/objclosure.c
@@ -61,6 +61,7 @@ STATIC mp_obj_t closure_call(mp_obj_t self_in, mp_uint_t n_args, mp_uint_t n_kw,
#if MICROPY_ERROR_REPORTING == MICROPY_ERROR_REPORTING_DETAILED
STATIC void closure_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t o_in, mp_print_kind_t kind) {
+ (void)kind;
mp_obj_closure_t *o = o_in;
print(env, "<closure ");
mp_obj_print_helper(print, env, o->fun, PRINT_REPR);