Skip to content

Commit

Permalink
grub2: don't use deprecated parser attributes
Browse files Browse the repository at this point in the history
Using bison 3.8.2, we currently have bison deprecation warnings during build:

  discover/grub2/grub2-parser.y:2.1-12: warning: deprecated directive: ‘%pure-parser’, use ‘%define api.pure’ [-Wdeprecated]

Switch to the new format instead.

Signed-off-by: Jeremy Kerr <[email protected]>
  • Loading branch information
jk-ozlabs committed Feb 13, 2024
1 parent 78d7032 commit 411b733
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ Change categories:

1. GRUB parser: bls: Fix NULL pointer dereference on empty values

2. GRUB parser: use new define syntax for yacc source

### Changed

1. pb-console: we now silence the kernel log messages printed to console
Expand Down
4 changes: 2 additions & 2 deletions discover/grub2/grub2-parser.y
Original file line number Diff line number Diff line change
@@ -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>
Expand Down

0 comments on commit 411b733

Please sign in to comment.