From: Matthew Fernandez Date: Wed, 2 Sep 2020 00:53:43 +0000 (-0700) Subject: suppress warnings from using Bison extensions in lib/expr/exparse.y X-Git-Tag: 2.46.0~20^2^2~92^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=80dc9a02020d423bce413a51f1a8c7e672b9fe0c;p=graphviz suppress warnings from using Bison extensions in lib/expr/exparse.y This is the equivalent of 8c099fc032074a0bb5961d67ef4df05ddca7eba4 but for a different parser. Surprisingly exparse.y was already using Bison extensions, so this actually suppresses two warnings: bison -y -dtv ../../lib/expr/exparse.y ../../lib/expr/exparse.y:131.1-7: warning: POSIX Yacc does not support %binary [-Wyacc] %binary EQ NE ^~~~~~~ ../../lib/expr/exparse.y:132.1-7: warning: POSIX Yacc does not support %binary [-Wyacc] %binary '<' '>' LE GE ^~~~~~~ Related to #1806. --- diff --git a/lib/expr/Makefile.am b/lib/expr/Makefile.am index 9562c3946..52802ec2d 100644 --- a/lib/expr/Makefile.am +++ b/lib/expr/Makefile.am @@ -67,7 +67,7 @@ exparse.h: y.tab.h y.tab.c y.tab.h: y.output y.output: $(top_srcdir)/lib/expr/exparse.y - @YACC@ -dtv $(top_srcdir)/lib/expr/exparse.y + @YACC@ -Wno-yacc -dtv $(top_srcdir)/lib/expr/exparse.y expr.3.pdf: expr.3.ps @PS2PDF@ $< $@ diff --git a/lib/expr/expr.vcxproj b/lib/expr/expr.vcxproj index a170a3df8..f7c9ab189 100644 --- a/lib/expr/expr.vcxproj +++ b/lib/expr/expr.vcxproj @@ -64,7 +64,7 @@ - win_bison -dy exparse.y -o exparse-intermediate.c + win_bison -Wno-yacc -dy exparse.y -o exparse-intermediate.c sed "s/yy/ex/g" < exparse-intermediate.c | sed "s/YY/EX/g" > exparse.c sed "s/yy/ex/g" < exparse-intermediate.h | sed "s/YY/EX/g" > exparse.h del exparse-intermediate.c @@ -82,7 +82,7 @@ del exparse-intermediate.h - win_bison -dy exparse.y -o exparse-intermediate.c + win_bison -Wno-yacc -dy exparse.y -o exparse-intermediate.c sed "s/yy/ex/g" < exparse-intermediate.c | sed "s/YY/EX/g" > exparse.c sed "s/yy/ex/g" < exparse-intermediate.h | sed "s/YY/EX/g" > exparse.h del exparse-intermediate.c