diff mbox series

[v2,2/5] yacc: Fix warnings

Message ID e865dde647fdde0cc2b0bad8638313d7a79467bf.1665246792.git.geoff@infradead.org
State New
Headers show
Series [v2,1/5] bootstrap: Fix warnings | expand

Commit Message

Geoff Levand Oct. 8, 2022, 4:42 p.m. UTC
Fixes yacc warnings like these:

  warning: deprecated directive: ‘%pure-parser’, use ‘%define api.pure’

Signed-off-by: Geoff Levand <geoff@infradead.org>
---
 discover/grub2/grub2-parser.y   | 4 ++--
 discover/native/native-parser.y | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

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}
 %{