summaryrefslogtreecommitdiffstatshomepage
path: root/unix
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-01-20 11:55:10 +0000
committerDamien George <damien.p.george@gmail.com>2015-01-20 11:55:10 +0000
commit50912e7f5dc579fd2917537046793dfa30decadf (patch)
tree541d6f7531d9d75e168fc914f226d15b4c7faf04 /unix
parent640e0b221e972f9a2da2d870bf3fc5a93c18f0ec (diff)
downloadmicropython-50912e7f5dc579fd2917537046793dfa30decadf.tar.gz
micropython-50912e7f5dc579fd2917537046793dfa30decadf.zip
py, unix, stmhal: Allow to compile with -Wshadow.
See issue #699.
Diffstat (limited to 'unix')
-rw-r--r--unix/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/unix/main.c b/unix/main.c
index 286af78e6b..899a6f70de 100644
--- a/unix/main.c
+++ b/unix/main.c
@@ -354,6 +354,7 @@ int main(int argc, char **argv) {
mp_obj_t *path_items;
mp_obj_list_get(mp_sys_path, &path_num, &path_items);
path_items[0] = MP_OBJ_NEW_QSTR(MP_QSTR_);
+ {
char *p = path;
for (mp_uint_t i = 1; i < path_num; i++) {
char *p1 = strchr(p, PATHLIST_SEP_CHAR);
@@ -371,6 +372,7 @@ int main(int argc, char **argv) {
}
p = p1 + 1;
}
+ }
mp_obj_list_init(mp_sys_argv, 0);