diff options
Diffstat (limited to 'extmod')
-rw-r--r-- | extmod/modubinascii.c | 1 | ||||
-rw-r--r-- | extmod/moductypes.c | 2 | ||||
-rw-r--r-- | extmod/moduhashlib.c | 1 | ||||
-rw-r--r-- | extmod/modure.c | 4 | ||||
-rw-r--r-- | extmod/moduzlib.c | 1 |
5 files changed, 9 insertions, 0 deletions
diff --git a/extmod/modubinascii.c b/extmod/modubinascii.c index 57aa2c2ce2..de8b5d9aeb 100644 --- a/extmod/modubinascii.c +++ b/extmod/modubinascii.c @@ -35,6 +35,7 @@ #if MICROPY_PY_UBINASCII STATIC mp_obj_t mod_binascii_hexlify(mp_uint_t n_args, const mp_obj_t *args) { + (void)n_args; mp_buffer_info_t bufinfo; mp_get_buffer_raise(args[0], &bufinfo, MP_BUFFER_READ); diff --git a/extmod/moductypes.c b/extmod/moductypes.c index 923d34488e..7e7128a269 100644 --- a/extmod/moductypes.c +++ b/extmod/moductypes.c @@ -122,6 +122,7 @@ STATIC NORETURN void syntax_error(void) { } STATIC mp_obj_t uctypes_struct_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args) { + (void)n_kw; if (n_args < 2 || n_args > 3) { syntax_error(); } @@ -137,6 +138,7 @@ STATIC mp_obj_t uctypes_struct_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_u } STATIC void uctypes_struct_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in, mp_print_kind_t kind) { + (void)kind; mp_obj_uctypes_struct_t *self = self_in; const char *typen = "unk"; if (MP_OBJ_IS_TYPE(self->desc, &mp_type_dict)) { diff --git a/extmod/moduhashlib.c b/extmod/moduhashlib.c index d4d05c3e95..40a0f06094 100644 --- a/extmod/moduhashlib.c +++ b/extmod/moduhashlib.c @@ -71,6 +71,7 @@ STATIC mp_obj_t hash_digest(mp_obj_t self_in) { MP_DEFINE_CONST_FUN_OBJ_1(hash_digest_obj, hash_digest); STATIC mp_obj_t hash_hexdigest(mp_obj_t self_in) { + (void)self_in; mp_not_implemented(""); #if 0 mp_obj_hash_t *self = self_in; diff --git a/extmod/modure.c b/extmod/modure.c index fa7ae67740..d192585f5d 100644 --- a/extmod/modure.c +++ b/extmod/modure.c @@ -52,6 +52,7 @@ typedef struct _mp_obj_match_t { STATIC void match_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in, mp_print_kind_t kind) { + (void)kind; mp_obj_match_t *self = self_in; print(env, "<match num=%d @%p>", self->num_matches); } @@ -82,11 +83,13 @@ STATIC const mp_obj_type_t match_type = { }; STATIC void re_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in, mp_print_kind_t kind) { + (void)kind; mp_obj_re_t *self = self_in; print(env, "<re %p>", self); } STATIC mp_obj_t re_exec(bool is_anchored, uint n_args, const mp_obj_t *args) { + (void)n_args; mp_obj_re_t *self = args[0]; Subject subj; mp_uint_t len; @@ -192,6 +195,7 @@ STATIC mp_obj_t mod_re_compile(uint n_args, const mp_obj_t *args) { MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mod_re_compile_obj, 1, 2, mod_re_compile); STATIC mp_obj_t mod_re_exec(bool is_anchored, uint n_args, const mp_obj_t *args) { + (void)n_args; mp_obj_re_t *self = mod_re_compile(1, args); const mp_obj_t args2[] = {self, args[1]}; diff --git a/extmod/moduzlib.c b/extmod/moduzlib.c index 680b5c1b8e..821f300dab 100644 --- a/extmod/moduzlib.c +++ b/extmod/moduzlib.c @@ -55,6 +55,7 @@ STATIC int mod_uzlib_grow_buf(TINF_DATA *d, unsigned alloc_req) { } STATIC mp_obj_t mod_uzlib_decompress(mp_uint_t n_args, const mp_obj_t *args) { + (void)n_args; mp_obj_t data = args[0]; mp_buffer_info_t bufinfo; mp_get_buffer_raise(data, &bufinfo, MP_BUFFER_READ); |