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/objfloat.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/objfloat.c')
-rw-r--r-- | py/objfloat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/objfloat.c b/py/objfloat.c index 86b672007e..4323cec54c 100644 --- a/py/objfloat.c +++ b/py/objfloat.c @@ -42,6 +42,7 @@ #endif STATIC void float_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t o_in, mp_print_kind_t kind) { + (void)kind; mp_obj_float_t *o = o_in; #if MICROPY_FLOAT_IMPL == MICROPY_FLOAT_IMPL_FLOAT char buf[16]; @@ -63,6 +64,7 @@ STATIC void float_print(void (*print)(void *env, const char *fmt, ...), void *en } STATIC mp_obj_t float_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) { |