From: Matthew Fernandez Date: Wed, 9 Sep 2020 02:38:24 +0000 (-0700) Subject: suppress Bison warnings from using non-Yacc compatible extensions in HTML parser X-Git-Tag: 2.46.0~20^2^2~80^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0374895ef4982015a0ec11a18c967b858b35d49e;p=graphviz suppress Bison warnings from using non-Yacc compatible extensions in HTML parser We do not actually use any of these yet, but we are about to. Related to #1806. --- diff --git a/lib/common/Makefile.am b/lib/common/Makefile.am index 2e2049c9a..2c9ad767e 100644 --- a/lib/common/Makefile.am +++ b/lib/common/Makefile.am @@ -68,7 +68,7 @@ htmlparse.h: y.tab.h y.tab.c y.tab.h: y.output y.output: $(top_srcdir)/lib/common/htmlparse.y - @YACC@ -dv $(top_srcdir)/lib/common/htmlparse.y + @YACC@ -Wno-yacc -dv $(top_srcdir)/lib/common/htmlparse.y DISTCLEANFILES = brewer_lib color_lib colortbl.h ps_font_equiv.h \ y.output y.tab.[ch] htmlparse.[ch] diff --git a/lib/gvc.vcxproj b/lib/gvc.vcxproj index 1d51c05d8..d604f4a79 100644 --- a/lib/gvc.vcxproj +++ b/lib/gvc.vcxproj @@ -72,7 +72,7 @@ cdt.lib;cgraph.lib;xml2.lib;expat.lib;zlib.lib;rxspencer.lib;%(AdditionalDependencies) - win_bison -dy common\htmlparse.y -o common\htmlparse-intermediate.c + win_bison -dy -Wno-yacc common\htmlparse.y -o common\htmlparse-intermediate.c sed "s/yy/html/g" < common\htmlparse-intermediate.c > common\htmlparse.c sed "s/yy/html/g" < common\htmlparse-intermediate.h > common\htmlparse.h del common\htmlparse-intermediate.c @@ -107,7 +107,7 @@ awk -f $(SolutionDir)awk\colortbl.awk color_lib > common\colortbl.h cdt.lib;cgraph.lib;xml2.lib;expat.lib;zlib.lib;rxspencer.lib;%(AdditionalDependencies) - win_bison -dy common\htmlparse.y -o common\htmlparse-intermediate.c + win_bison -dy -Wno-yacc common\htmlparse.y -o common\htmlparse-intermediate.c sed "s/yy/html/g" < common\htmlparse-intermediate.c > common\htmlparse.c sed "s/yy/html/g" < common\htmlparse-intermediate.h > common\htmlparse.h del common\htmlparse-intermediate.c