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/objmap.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/objmap.c')
-rw-r--r-- | py/objmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objmap.c b/py/objmap.c index ea62bb512f..3225b4dc93 100644 --- a/py/objmap.c +++ b/py/objmap.c @@ -43,7 +43,7 @@ STATIC mp_obj_t map_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_uint_t n_kw, } assert(n_args >= 2); mp_obj_map_t *o = m_new_obj_var(mp_obj_map_t, mp_obj_t, n_args - 1); - o->base.type = &mp_type_map; + o->base.type = type_in; o->n_iters = n_args - 1; o->fun = args[0]; for (mp_uint_t i = 0; i < n_args - 1; i++) { |