summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien <damien.p.george@gmail.com>2013-12-20 14:22:59 +0000
committerDamien <damien.p.george@gmail.com>2013-12-20 14:22:59 +0000
commite2880aa2fdc75298df487df7519d483acb03959c (patch)
treedcaf98cf6c33d4ee0d42eec51964c4ab17da6f3a
parentba66a8fc5715ed771410539e39a996b2a9632ba1 (diff)
downloadmicropython-e2880aa2fdc75298df487df7519d483acb03959c.tar.gz
micropython-e2880aa2fdc75298df487df7519d483acb03959c.zip
Fix a few compiler warnings.
-rw-r--r--py/compile.c2
-rw-r--r--stm/Makefile2
-rw-r--r--unix/Makefile2
3 files changed, 3 insertions, 3 deletions
diff --git a/py/compile.c b/py/compile.c
index ea0bbc2d55..42bac7d28a 100644
--- a/py/compile.c
+++ b/py/compile.c
@@ -1610,7 +1610,7 @@ void compile_try_except(compiler_t *comp, py_parse_node_t pn_body, int n_except,
EMIT(pop_top);
- int l3;
+ int l3 = 0;
if (qstr_exception_local != 0) {
l3 = comp_next_label(comp);
EMIT(setup_finally, l3);
diff --git a/stm/Makefile b/stm/Makefile
index a5d0aad8a0..8817717950 100644
--- a/stm/Makefile
+++ b/stm/Makefile
@@ -148,7 +148,7 @@ $(BUILD)/%.o: $(CC3KSRC)/%.c
$(CC) $(CFLAGS) -c -o $@ $<
$(BUILD)/%.o: $(PYSRC)/%.s
- $(AS) -c -o $@ $<
+ $(AS) -o $@ $<
$(BUILD)/%.o: $(PYSRC)/%.c mpyconfig.h
$(CC) $(CFLAGS) -c -o $@ $<
diff --git a/unix/Makefile b/unix/Makefile
index 8c59b5b3f2..76cc0a3855 100644
--- a/unix/Makefile
+++ b/unix/Makefile
@@ -50,7 +50,7 @@ $(BUILD)/%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
$(BUILD)/%.o: $(PYSRC)/%.s
- $(AS) -c -o $@ $<
+ $(AS) -o $@ $<
$(BUILD)/%.o: $(PYSRC)/%.c mpyconfig.h
$(CC) $(CFLAGS) -c -o $@ $<