aboutsummaryrefslogtreecommitdiff
path: root/py/objobject.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-01-20 12:47:20 +0000
committerDamien George <damien.p.george@gmail.com>2015-01-20 12:47:20 +0000
commitff8dd3f486afb0d6ff1427d8a6a8a8ed73baa660 (patch)
tree16b54a843a312757976e15f24f413e00e151fbe2 /py/objobject.c
parent50912e7f5dc579fd2917537046793dfa30decadf (diff)
py, unix: Allow to compile with -Wunused-parameter.
See issue #699.
Diffstat (limited to 'py/objobject.c')
-rw-r--r--py/objobject.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/py/objobject.c b/py/objobject.c
index 5bbe02b32..87295b765 100644
--- a/py/objobject.c
+++ b/py/objobject.c
@@ -37,17 +37,19 @@ typedef struct _mp_obj_object_t {
} mp_obj_object_t;
STATIC mp_obj_t object_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args) {
+ (void)args;
if (n_args != 0 || n_kw != 0) {
nlr_raise(mp_obj_new_exception_msg(&mp_type_TypeError, "object takes no arguments"));
}
mp_obj_object_t *o = m_new_obj(mp_obj_object_t);
- o->base.type = &mp_type_object;
+ o->base.type = type_in;
return o;
}
#if MICROPY_CPYTHON_COMPAT
STATIC mp_obj_t object___init__(mp_obj_t self) {
+ (void)self;
return mp_const_none;
}
STATIC MP_DEFINE_CONST_FUN_OBJ_1(object___init___obj, object___init__);