[PATCH v1 2/5] yacc: Fix warnings
Geoff Levand
geoff at infradead.org
Thu Sep 29 10:52:17 AEST 2022
Fixes yacc warnings like these:
warning: deprecated directive: ‘%pure-parser’, use ‘%define api.pure’
Signed-off-by: Geoff Levand <geoff at infradead.org>
---
discover/grub2/grub2-parser.y | 4 ++--
discover/native/native-parser.y | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/discover/grub2/grub2-parser.y b/discover/grub2/grub2-parser.y
index f99bbfd..3433415 100644
--- a/discover/grub2/grub2-parser.y
+++ b/discover/grub2/grub2-parser.y
@@ -1,9 +1,9 @@
-%pure-parser
+%define api.pure
%lex-param { yyscan_t scanner }
%parse-param { struct grub2_parser *parser }
%parse-param { void *scanner }
-%error-verbose
+%define parse.error verbose
%{
#include <talloc/talloc.h>
diff --git a/discover/native/native-parser.y b/discover/native/native-parser.y
index bafcf49..b5fe9b1 100644
--- a/discover/native/native-parser.y
+++ b/discover/native/native-parser.y
@@ -1,9 +1,9 @@
-%pure-parser
+%define api.pure
%lex-param { nscan_t scanner }
%parse-param { struct native_parser *parser }
%parse-param { void *scanner }
-%error-verbose
+%define parse.error verbose
%define api.prefix {n}
%{
--
2.34.1
More information about the Petitboot
mailing list