py, unix: Allow to compile with -Wunused-parameter.

See issue #699.
This commit is contained in:
Damien George
2015-01-20 12:47:20 +00:00
parent 50912e7f5d
commit ff8dd3f486
51 changed files with 156 additions and 19 deletions

View File

@@ -62,6 +62,8 @@ void mp_obj_tuple_print(void (*print)(void *env, const char *fmt, ...), void *en
}
STATIC mp_obj_t mp_obj_tuple_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);
switch (n_args) {