From 0374895ef4982015a0ec11a18c967b858b35d49e Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Tue, 8 Sep 2020 19:38:24 -0700 Subject: [PATCH] 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. --- lib/common/Makefile.am | 2 +- lib/gvc.vcxproj | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.50.1