diff options
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 |