From e2880aa2fdc75298df487df7519d483acb03959c Mon Sep 17 00:00:00 2001 From: Damien Date: Fri, 20 Dec 2013 14:22:59 +0000 Subject: [PATCH] Fix a few compiler warnings. --- py/compile.c | 2 +- stm/Makefile | 2 +- unix/Makefile | 2 +- 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 $@ $<