diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2009-11-28 04:36:59 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2009-11-28 04:36:59 -0800 |
commit | 0e7eec82341e06cd42f2084f776d8377cbcf0871 (patch) | |
tree | 8624dd0d2beb836aac49a08838df0c74c4c8e56e /Makefile | |
parent | 1904b4bedefea15e43a6583255b6b2d2fd6fc69e (diff) | |
download | txr-0e7eec82341e06cd42f2084f776d8377cbcf0871.tar.gz txr-0e7eec82341e06cd42f2084f776d8377cbcf0871.tar.bz2 txr-0e7eec82341e06cd42f2084f776d8377cbcf0871.zip |
* 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.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |