summaryrefslogtreecommitdiff
path: root/py/bc.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-09-04 16:53:46 +0100
committerDamien George <damien.p.george@gmail.com>2015-09-04 16:53:46 +0100
commit3a2171e4061f3a6e3f00c28edf78ff9473355887 (patch)
tree255882baafabc810789d532d244bd9a30e298bb9 /py/bc.c
parent42cec5c893c4055c9c3a4b224bbf65bf0dfd9f49 (diff)
py: Eliminate some cases which trigger unused parameter warnings.
Diffstat (limited to 'py/bc.c')
-rw-r--r--py/bc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/bc.c b/py/bc.c
index a8f256668..3e9125d5c 100644
--- a/py/bc.c
+++ b/py/bc.c
@@ -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