diff options
author | Damien George <damien.p.george@gmail.com> | 2015-01-20 11:55:10 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-01-20 11:55:10 +0000 |
commit | 50912e7f5dc579fd2917537046793dfa30decadf (patch) | |
tree | 541d6f7531d9d75e168fc914f226d15b4c7faf04 /py/argcheck.c | |
parent | 640e0b221e972f9a2da2d870bf3fc5a93c18f0ec (diff) | |
download | micropython-50912e7f5dc579fd2917537046793dfa30decadf.tar.gz micropython-50912e7f5dc579fd2917537046793dfa30decadf.zip |
py, unix, stmhal: Allow to compile with -Wshadow.
See issue #699.
Diffstat (limited to 'py/argcheck.c')
-rw-r--r-- | py/argcheck.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/argcheck.c b/py/argcheck.c index 243ea60567..d895ede768 100644 --- a/py/argcheck.c +++ b/py/argcheck.c @@ -84,7 +84,7 @@ void mp_arg_parse_all(mp_uint_t n_pos, const mp_obj_t *pos, mp_map_t *kws, mp_ui pos_found++; given_arg = pos[i]; } else { - mp_map_elem_t *kw = mp_map_lookup(kws, MP_OBJ_NEW_QSTR(allowed[i].qstr), MP_MAP_LOOKUP); + mp_map_elem_t *kw = mp_map_lookup(kws, MP_OBJ_NEW_QSTR(allowed[i].qst), MP_MAP_LOOKUP); if (kw == NULL) { if (allowed[i].flags & MP_ARG_REQUIRED) { if (MICROPY_ERROR_REPORTING == MICROPY_ERROR_REPORTING_TERSE) { @@ -92,7 +92,7 @@ void mp_arg_parse_all(mp_uint_t n_pos, const mp_obj_t *pos, mp_map_t *kws, mp_ui } else { nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_TypeError, "'%s' argument required", - qstr_str(allowed[i].qstr))); + qstr_str(allowed[i].qst))); } } out_vals[i] = allowed[i].defval; |