add compiler option -Wall

This commit is contained in:
Yuichi Nishiwaki 2013-10-16 13:15:43 +09:00
parent f6eddbc6d3
commit a6920c192f
3 changed files with 1 additions and 7 deletions

View File

@ -4,7 +4,7 @@ build:
cd src; \ cd src; \
yacc -d parse.y; \ yacc -d parse.y; \
lex scan.l 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: clean:
rm -f src/y.tab.c src/y.tab.h src/lex.yy.c rm -f src/y.tab.c src/y.tab.h src/lex.yy.c

View File

@ -30,9 +30,6 @@ pic_debug(pic_state *pic, pic_value obj)
case PIC_TT_PROC: case PIC_TT_PROC:
printf("#<proc %p>", pic_proc_ptr(obj)); printf("#<proc %p>", pic_proc_ptr(obj));
break; break;
default:
printf("#<unknown type>");
break;
} }
} }

View File

@ -149,9 +149,6 @@ print_irep(pic_state *pic, struct pic_irep *irep)
case OP_STOP: case OP_STOP:
puts("OP_STOP"); puts("OP_STOP");
break; break;
default:
puts("<<unknown>>");
break;
} }
} }
} }