From 349becde3d38dc3f4a77dafa70072cc4cee84764 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 11 Nov 2015 00:58:07 -0800 Subject: [PATCH] Promote all warnings from bison to full-on errors. --- Makefile.am | 2 +- Makefile.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 57cdbdc..ee3b63b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -105,7 +105,7 @@ Console.$(OBJEXT) Cycript.tab.lo Driver.lo Handler.lo Highlight.lo Library.lo le CLEANFILES += Cycript.tab.cc Cycript.tab.hh stack.hh Cycript.output Cycript.tab.cc Cycript.tab.hh stack.hh Cycript.output: Cycript.yy - $(BISON) -v --report=state $< + $(BISON) -v --report=state -Werror $< ! grep -n '^State [0-9]* conflicts:' Cycript.output ! grep -n '^ *$$default reduce using rule [0-9]* (Lex[A-Z][^)]*)$$' Cycript.output -B 2 | grep 'shift, and go to state [0-9]*$$' ! grep -n '^ *$$default reduce using rule [0-9]* (Lex[A-Z][^)]*)$$' Cycript.output -B 2 | grep -v '$$default' | grep 'reduce using rule [0-9]* ([^)]*)$$' diff --git a/Makefile.in b/Makefile.in index f94d427..baed839 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1326,7 +1326,7 @@ lex.cy.cpp: Cycript.l Console.$(OBJEXT) Cycript.tab.lo Driver.lo Handler.lo Highlight.lo Library.lo lex.cy.lo: Cycript.tab.hh Cycript.tab.cc Cycript.tab.hh stack.hh Cycript.output: Cycript.yy - $(BISON) -v --report=state $< + $(BISON) -v --report=state -Werror $< ! grep -n '^State [0-9]* conflicts:' Cycript.output ! grep -n '^ *$$default reduce using rule [0-9]* (Lex[A-Z][^)]*)$$' Cycript.output -B 2 | grep 'shift, and go to state [0-9]*$$' ! grep -n '^ *$$default reduce using rule [0-9]* (Lex[A-Z][^)]*)$$' Cycript.output -B 2 | grep -v '$$default' | grep 'reduce using rule [0-9]* ([^)]*)$$' -- 2.45.2