* compile an unused function out. gcc-4.3.2 on Debian/Lenny throws a warning for...
authorBernd Petrovitsch <bernd@firmix.at>
Wed, 3 Dec 2008 14:41:00 +0000 (15:41 +0100)
committerBernd Petrovitsch <bernd@firmix.at>
Wed, 3 Dec 2008 14:41:00 +0000 (15:41 +0100)
src/cfgparser/local.mk

index 51fac5b..3195c58 100644 (file)
@@ -61,7 +61,7 @@ $(C)oscan.c: $(C)oscan.lex $(C)Makefile
 $(C)oscan.o: $(C)oparse.c
 $(C)oscan.o: CFLAGS := $(filter-out -Wunreachable-code -Wsign-compare,$(CFLAGS)) -Wno-sign-compare
 # we need potentially another -I directory
-$(C)oscan.o: CPPFLAGS += $(if $(CFGDIR),-I$(CFGDIR))
+$(C)oscan.o: CPPFLAGS += $(if $(CFGDIR),-I$(CFGDIR)) -DYY_NO_INPUT
 
 $(C)oparse.c: $(C)oparse.y $(C)olsrd_conf.h $(C)Makefile
        $(BISON) -d -o "$@-tmp" "$<"