diff options
author | Damien George <damien.p.george@gmail.com> | 2015-01-20 12:47:20 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-01-20 12:47:20 +0000 |
commit | ff8dd3f486afb0d6ff1427d8a6a8a8ed73baa660 (patch) | |
tree | 16b54a843a312757976e15f24f413e00e151fbe2 /py/objnone.c | |
parent | 50912e7f5dc579fd2917537046793dfa30decadf (diff) | |
download | micropython-ff8dd3f486afb0d6ff1427d8a6a8a8ed73baa660.tar.gz micropython-ff8dd3f486afb0d6ff1427d8a6a8a8ed73baa660.zip |
py, unix: Allow to compile with -Wunused-parameter.
See issue #699.
Diffstat (limited to 'py/objnone.c')
-rw-r--r-- | py/objnone.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/objnone.c b/py/objnone.c index 387fb58cb6..523158d00e 100644 --- a/py/objnone.c +++ b/py/objnone.c @@ -35,6 +35,7 @@ typedef struct _mp_obj_none_t { } mp_obj_none_t; STATIC void none_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in, mp_print_kind_t kind) { + (void)self_in; if (MICROPY_PY_UJSON && kind == PRINT_JSON) { print(env, "null"); } else { @@ -43,6 +44,7 @@ STATIC void none_print(void (*print)(void *env, const char *fmt, ...), void *env } STATIC mp_obj_t none_unary_op(mp_uint_t op, mp_obj_t o_in) { + (void)o_in; switch (op) { case MP_UNARY_OP_BOOL: return mp_const_false; default: return MP_OBJ_NULL; // op not supported |