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/objarray.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/objarray.c')
-rw-r--r-- | py/objarray.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/py/objarray.c b/py/objarray.c index 2634190dd3..25d9daea97 100644 --- a/py/objarray.c +++ b/py/objarray.c @@ -77,6 +77,7 @@ STATIC mp_int_t array_get_buffer(mp_obj_t o_in, mp_buffer_info_t *bufinfo, mp_ui #if MICROPY_PY_BUILTINS_BYTEARRAY || MICROPY_PY_ARRAY STATIC void array_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t o_in, mp_print_kind_t kind) { + (void)kind; mp_obj_array_t *o = o_in; if (o->typecode == BYTEARRAY_TYPECODE) { print(env, "bytearray(b"); @@ -168,6 +169,7 @@ STATIC mp_obj_t array_construct(char typecode, mp_obj_t initializer) { #if MICROPY_PY_ARRAY STATIC mp_obj_t array_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_arg_check_num(n_args, n_kw, 1, 2, false); // get typecode @@ -186,6 +188,7 @@ STATIC mp_obj_t array_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_uint_t n_k #if MICROPY_PY_BUILTINS_BYTEARRAY STATIC mp_obj_t bytearray_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_arg_check_num(n_args, n_kw, 0, 1, false); if (n_args == 0) { |