add compiler option -Wall
This commit is contained in:
parent
f6eddbc6d3
commit
a6920c192f
2
Makefile
2
Makefile
|
@ -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
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue