summaryrefslogtreecommitdiff
path: root/stmhal/pyexec.c
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 /stmhal/pyexec.c
parent640e0b221e972f9a2da2d870bf3fc5a93c18f0ec (diff)
py, unix, stmhal: Allow to compile with -Wshadow.
See issue #699.
Diffstat (limited to 'stmhal/pyexec.c')
-rw-r--r--stmhal/pyexec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/pyexec.c b/stmhal/pyexec.c
index f4b8c10fd..761372109 100644
--- a/stmhal/pyexec.c
+++ b/stmhal/pyexec.c
@@ -365,7 +365,7 @@ friendly_repl_reset:
while (mp_repl_continue_with_input(vstr_str(&line))) {
vstr_add_char(&line, '\n');
- int ret = readline(&line, "... ");
+ ret = readline(&line, "... ");
if (ret == CHAR_CTRL_C) {
// cancel everything
stdout_tx_str("\r\n");
@@ -380,7 +380,7 @@ friendly_repl_reset:
if (lex == NULL) {
printf("MemoryError\n");
} else {
- int ret = parse_compile_execute(lex, MP_PARSE_SINGLE_INPUT, EXEC_FLAG_ALLOW_DEBUGGING | EXEC_FLAG_IS_REPL);
+ ret = parse_compile_execute(lex, MP_PARSE_SINGLE_INPUT, EXEC_FLAG_ALLOW_DEBUGGING | EXEC_FLAG_IS_REPL);
if (ret & PYEXEC_FORCED_EXIT) {
return ret;
}