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/objproperty.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/objproperty.c')
-rw-r--r-- | py/objproperty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objproperty.c b/py/objproperty.c index 75cc1458ea..3ec9092365 100644 --- a/py/objproperty.c +++ b/py/objproperty.c @@ -41,7 +41,7 @@ STATIC mp_obj_t property_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_uint_t mp_arg_check_num(n_args, n_kw, 0, 4, false); mp_obj_property_t *o = m_new_obj(mp_obj_property_t); - o->base.type = &mp_type_property; + o->base.type = type_in; if (n_args >= 4) { // doc ignored } |