From 9308b38f200c902deb4f28af5c73370f5fa39bb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20Hoffst=C3=A4tte?= Date: Wed, 12 Jul 2023 14:41:27 +0200 Subject: [PATCH] Fix missing bison argument quoting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Passing a value to bison via -D with or without quotes is deprecated: bison -y -d -v --file-prefix=rc -Dapi.prefix=rc --defines=rcparser.hh rcfile.yy; \ mv rc.tab.c rcparser.cc :5: warning: %define variable 'api.prefix' requires '{...}' values [-Wdeprecated] Fix this by correctly quoting the values with curly braces. Signed-off-by: Holger Hoffstätte --- src/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 94592b9..ba2d772 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -32,7 +32,7 @@ rcfile.cc: rcfile.ll rcparser.hh rcparser.hh: rcparser.cc rcparser.cc: rcfile.yy - $(YACC) $(YFLAGS) --file-prefix=rc -Dapi.prefix=rc --defines=rcparser.hh $<; \ + $(YACC) $(YFLAGS) --file-prefix=rc -Dapi.prefix={rc} --defines=rcparser.hh $<; \ mv rc.tab.c rcparser.cc # Almost the same as above, but this time for the RFC 822 parser: @@ -41,7 +41,7 @@ rfc822.cc: rfc822.ll rfc822parser.hh rfc822parser.hh: rfc822parser.cc rfc822parser.cc: rfc822.yy - $(YACC) $(YFLAGS) --file-prefix=rfc -Dapi.prefix=rfc --defines=rfc822parser.hh $<; \ + $(YACC) $(YFLAGS) --file-prefix=rfc -Dapi.prefix={rfc} --defines=rfc822parser.hh $<; \ mv rfc.tab.c rfc822parser.cc CLEANFILES = *.output Makefile.in rcfile.cc rcfile.ll.bak rcparser.cc rcparser.hh rfc822.cc rfc822parser.cc rfc822parser.hh