From a6920c192f5f810397b61f78c03246a1d7c0d85b Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Wed, 16 Oct 2013 13:15:43 +0900 Subject: [PATCH] add compiler option -Wall --- Makefile | 2 +- src/port.c | 3 --- src/vm.c | 3 --- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 8e0ce1ea..24ecd644 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ build: cd src; \ yacc -d parse.y; \ lex scan.l - gcc -o bin/picrin -I./include src/main.c src/state.c src/gc.c src/pair.c src/port.c src/symbol.c src/value.c src/y.tab.c src/lex.yy.c src/bool.c src/vm.c src/init.c src/number.c + gcc -Wall -o bin/picrin -I./include src/main.c src/state.c src/gc.c src/pair.c src/port.c src/symbol.c src/value.c src/y.tab.c src/lex.yy.c src/bool.c src/vm.c src/init.c src/number.c clean: rm -f src/y.tab.c src/y.tab.h src/lex.yy.c diff --git a/src/port.c b/src/port.c index ee31b2f6..e6ddbbb0 100644 --- a/src/port.c +++ b/src/port.c @@ -30,9 +30,6 @@ pic_debug(pic_state *pic, pic_value obj) case PIC_TT_PROC: printf("#", pic_proc_ptr(obj)); break; - default: - printf("#"); - break; } } diff --git a/src/vm.c b/src/vm.c index 46215a6c..60bf32c2 100644 --- a/src/vm.c +++ b/src/vm.c @@ -149,9 +149,6 @@ print_irep(pic_state *pic, struct pic_irep *irep) case OP_STOP: puts("OP_STOP"); break; - default: - puts("<>"); - break; } } }