diff options
author | Damien George <damien.p.george@gmail.com> | 2015-09-04 16:53:46 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-09-04 16:53:46 +0100 |
commit | 3a2171e4061f3a6e3f00c28edf78ff9473355887 (patch) | |
tree | 255882baafabc810789d532d244bd9a30e298bb9 /py/bc.c | |
parent | 42cec5c893c4055c9c3a4b224bbf65bf0dfd9f49 (diff) |
py: Eliminate some cases which trigger unused parameter warnings.
Diffstat (limited to 'py/bc.c')
-rw-r--r-- | py/bc.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -55,8 +55,12 @@ mp_uint_t mp_decode_uint(const byte **ptr) { STATIC NORETURN void fun_pos_args_mismatch(mp_obj_fun_bc_t *f, mp_uint_t expected, mp_uint_t given) { #if MICROPY_ERROR_REPORTING == MICROPY_ERROR_REPORTING_TERSE // generic message, used also for other argument issues + (void)f; + (void)expected; + (void)given; mp_arg_error_terse_mismatch(); #elif MICROPY_ERROR_REPORTING == MICROPY_ERROR_REPORTING_NORMAL + (void)f; nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_TypeError, "function takes %d positional arguments but %d were given", expected, given)); #elif MICROPY_ERROR_REPORTING == MICROPY_ERROR_REPORTING_DETAILED |