]> granicus.if.org Git - graphviz/commitdiff
suppress Bison warnings from using non-Yacc compatible extensions in HTML parser
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 9 Sep 2020 02:38:24 +0000 (19:38 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 15 Sep 2020 04:25:13 +0000 (21:25 -0700)
We do not actually use any of these yet, but we are about to. Related to #1806.

lib/common/Makefile.am
lib/gvc.vcxproj

index 2e2049c9a4c81bbb36e1c61e68b25283cf5e9508..2c9ad767efb33cf16f33614b738adbe68525ecd2 100644 (file)
@@ -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]
index 1d51c05d8931c335823c050e69ca6ba364f8af09..d604f4a79f7568021bf5705a52cc67dda1c6b2ef 100644 (file)
@@ -72,7 +72,7 @@
       <AdditionalDependencies>cdt.lib;cgraph.lib;xml2.lib;expat.lib;zlib.lib;rxspencer.lib;%(AdditionalDependencies)</AdditionalDependencies>
     </Link>
     <PreBuildEvent>
-      <Command>win_bison -dy common\htmlparse.y -o common\htmlparse-intermediate.c
+      <Command>win_bison -dy -Wno-yacc common\htmlparse.y -o common\htmlparse-intermediate.c
 sed "s/yy/html/g" &lt; common\htmlparse-intermediate.c &gt; common\htmlparse.c
 sed "s/yy/html/g" &lt; common\htmlparse-intermediate.h &gt; common\htmlparse.h
 del common\htmlparse-intermediate.c
@@ -107,7 +107,7 @@ awk -f $(SolutionDir)awk\colortbl.awk color_lib &gt; common\colortbl.h</Command>
       <AdditionalDependencies>cdt.lib;cgraph.lib;xml2.lib;expat.lib;zlib.lib;rxspencer.lib;%(AdditionalDependencies)</AdditionalDependencies>
     </Link>
     <PreBuildEvent>
-      <Command>win_bison -dy common\htmlparse.y -o common\htmlparse-intermediate.c
+      <Command>win_bison -dy -Wno-yacc common\htmlparse.y -o common\htmlparse-intermediate.c
 sed "s/yy/html/g" &lt; common\htmlparse-intermediate.c &gt; common\htmlparse.c
 sed "s/yy/html/g" &lt; common\htmlparse-intermediate.h &gt; common\htmlparse.h
 del common\htmlparse-intermediate.c