Make compilation fail on grammar shift/reduce or reduce/reduce conflict 37/15037/2
Bruno JOFRET [Mon, 18 Aug 2014 07:58:47 +0000 (09:58 +0200)]
Change-Id: Ic077160d5f3c4da69bb1456aa9616f8b26c9ca52

scilab/modules/ast/Makefile.am
scilab/modules/ast/Makefile.in

index 6f90d3e..53f4d11 100644 (file)
@@ -332,7 +332,7 @@ LFLAGS = --noline --nounistd -o $(FLEX_SCANSCILAB_CXX)
 FLEX_SCANSCILAB_LL     = src/cpp/parse/flex/scanscilab.ll
 FLEX_SCANSCILAB_CXX    = src/cpp/parse/scanscilab.cpp
 
-BISON_FLAGS = --no-lines -dvy -ra
+BISON_FLAGS = --no-lines -dvy -ra -Werror=conflicts-sr -Werror=conflicts-rr
 BISON_PARSESCILAB_YY   = src/cpp/parse/bison/parsescilab.yy
 BISON_PARSESCILAB_OUTPUT= src/cpp/parse/bison/parsescilab.output
 BISON_PARSESCILAB_HXX  = includes/parse/parsescilab.hxx
index 0df4cd8..f590068 100644 (file)
@@ -970,7 +970,7 @@ includes/system_env/home.h
 @BUILD_PARSER_TRUE@LFLAGS = --noline --nounistd -o $(FLEX_SCANSCILAB_CXX)
 @BUILD_PARSER_TRUE@FLEX_SCANSCILAB_LL = src/cpp/parse/flex/scanscilab.ll
 @BUILD_PARSER_TRUE@FLEX_SCANSCILAB_CXX = src/cpp/parse/scanscilab.cpp
-@BUILD_PARSER_TRUE@BISON_FLAGS = --no-lines -dvy -ra
+@BUILD_PARSER_TRUE@BISON_FLAGS = --no-lines -dvy -ra -Werror=conflicts-sr -Werror=conflicts-rr
 @BUILD_PARSER_TRUE@BISON_PARSESCILAB_YY = src/cpp/parse/bison/parsescilab.yy
 @BUILD_PARSER_TRUE@BISON_PARSESCILAB_OUTPUT = src/cpp/parse/bison/parsescilab.output
 @BUILD_PARSER_TRUE@BISON_PARSESCILAB_HXX = includes/parse/parsescilab.hxx