commit | ff8dd3f486afb0d6ff1427d8a6a8a8ed73baa660 | [log] [tgz] |
---|---|---|
author | Damien George <damien.p.george@gmail.com> | Tue Jan 20 12:47:20 2015 +0000 |
committer | Damien George <damien.p.george@gmail.com> | Tue Jan 20 12:47:20 2015 +0000 |
tree | 16b54a843a312757976e15f24f413e00e151fbe2 | |
parent | 50912e7f5dc579fd2917537046793dfa30decadf [diff] [blame] |
py, unix: Allow to compile with -Wunused-parameter. See issue #699.
diff --git a/py/objfun.c b/py/objfun.c index 8f83572..28706cc 100644 --- a/py/objfun.c +++ b/py/objfun.c
@@ -116,6 +116,7 @@ #if MICROPY_CPYTHON_COMPAT STATIC void fun_bc_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t o_in, mp_print_kind_t kind) { + (void)kind; mp_obj_fun_bc_t *o = o_in; print(env, "<function %s at 0x%x>", mp_obj_fun_get_name(o), o); }