From 98ea849d031b68508970a13ebd17823d5532819e Mon Sep 17 00:00:00 2001 From: David Given Date: Mon, 23 Mar 2015 00:09:27 +0100 Subject: [PATCH] Improve flex correctness. --- util/opt/build.mk | 1 - util/opt/mktab.y | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/util/opt/build.mk b/util/opt/build.mk index 75cb92553..a4e62ced7 100644 --- a/util/opt/build.mk +++ b/util/opt/build.mk @@ -11,7 +11,6 @@ $(call flex, $(OBJDIR)/$D, $D/scan.l) $(call dependson, $(OBJDIR)/$D/y.tab.h) $(call rawfile, $(LIBEM_DATA)) -$(call rawfile, -lfl) $(call cprogram, $(OBJDIR)/$D/mktab) endef diff --git a/util/opt/mktab.y b/util/opt/mktab.y index 08beaeccc..e2a6c0b1a 100644 --- a/util/opt/mktab.y +++ b/util/opt/mktab.y @@ -294,6 +294,10 @@ main() { return nerrors; } +int yywrap(void) { + return 1; +} + yyerror(s) char *s; { fprintf(stderr,"line %d: %s\n",lino,s);