diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | Makefile | 4 |
2 files changed, 11 insertions, 0 deletions
@@ -1,5 +1,12 @@ 2009-11-28 Kaz Kylheku <kkylheku@gmail.com> + * Makefile (CFLAGS): add -Dlint to CFLAGS when compiling y.tab.o. + This suppresses some warnings from a byacc-generated parser, + and gets rid of a useless static sccsid array. May help with + Bison-generated parser also. + +2009-11-28 Kaz Kylheku <kkylheku@gmail.com> + * parser.l: Use flex options to suppress generation of the unused functons yyunput and yyinput, thus getting rid of some compiler diagnostics. @@ -50,6 +50,10 @@ lex.yy.c: parser.l y.tab.c y.tab.h: parser.y if $(YACC) -v -d $< ; then true ; else rm $@ ; false ; fi +# Suppress useless sccs id array and unused label warning in byacc otuput. +# Bison-generated parser also tests for this lint define. +y.tab.o: CFLAGS += -Dlint + .PHONY: rebuild rebuild: clean $(PROG) |