diff options
| author | Damien George | 2015-01-20 11:55:10 +0000 |
|---|---|---|
| committer | Damien George | 2015-01-20 11:55:10 +0000 |
| commit | 50912e7f5dc579fd2917537046793dfa30decadf (patch) | |
| tree | 541d6f7531d9d75e168fc914f226d15b4c7faf04 /stmhal/moduselect.c | |
| parent | 640e0b221e972f9a2da2d870bf3fc5a93c18f0ec (diff) | |
py, unix, stmhal: Allow to compile with -Wshadow.
See issue #699.
Diffstat (limited to 'stmhal/moduselect.c')
| -rw-r--r-- | stmhal/moduselect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/moduselect.c b/stmhal/moduselect.c index 1adb6257f..67e4e2a28 100644 --- a/stmhal/moduselect.c +++ b/stmhal/moduselect.c @@ -240,7 +240,7 @@ STATIC mp_obj_t poll_poll(uint n_args, const mp_obj_t *args) { if (n_ready > 0 || (timeout != -1 && HAL_GetTick() - start_tick >= timeout)) { // one or more objects are ready, or we had a timeout mp_obj_list_t *ret_list = mp_obj_new_list(n_ready, NULL); - mp_uint_t n_ready = 0; + n_ready = 0; for (mp_uint_t i = 0; i < self->poll_map.alloc; ++i) { if (!MP_MAP_SLOT_IS_FILLED(&self->poll_map, i)) { continue; |
