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/objdict.c | |
parent | 50912e7f5dc579fd2917537046793dfa30decadf (diff) |
py, unix: Allow to compile with -Wunused-parameter.
See issue #699.
Diffstat (limited to 'py/objdict.c')
-rw-r--r-- | py/objdict.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/objdict.c b/py/objdict.c index 900ecf4eb..e97f30e7a 100644 --- a/py/objdict.c +++ b/py/objdict.c @@ -74,6 +74,7 @@ STATIC void dict_print(void (*print)(void *env, const char *fmt, ...), void *env } STATIC mp_obj_t dict_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args) { + (void)type_in; mp_obj_t dict = mp_obj_new_dict(0); if (n_args > 0 || n_kw > 0) { mp_obj_t args2[2] = {dict, args[0]}; // args[0] is always valid, even if it's not a positional arg @@ -446,6 +447,7 @@ STATIC mp_obj_t dict_view_getiter(mp_obj_t view_in) { } STATIC void dict_view_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in, mp_print_kind_t kind) { + (void)kind; assert(MP_OBJ_IS_TYPE(self_in, &dict_view_type)); mp_obj_dict_view_t *self = self_in; bool first = true; |