]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Make c-exp.y work with Bison 3.8+
authorChristian Biesinger <cbiesinger@google.com>
Fri, 8 Oct 2021 20:09:46 +0000 (16:09 -0400)
committerLuis Machado <luis.machado@arm.com>
Mon, 20 Jun 2022 10:36:47 +0000 (11:36 +0100)
commitad854c4c20b5c01ecd2784498c9a07a4c5c26b19
treeff43fd1dbc2b729d9c03acd58813763d4808c1a6
parent1dd907991841bfd269ddc821e7be41f7703f4b9d
Make c-exp.y work with Bison 3.8+

When using Bison 3.8, we get this error:

    ../../gdb/c-exp.y:3455:1: error: 'void c_print_token(FILE*, int, YYSTYPE)' defined but not used [-Werror=unused-function]

That's because bison 3.8 removed YYPRINT support:
https://savannah.gnu.org/forum/forum.php?forum_id=10047

Accordingly, this patch only defines that function for Bison < 3.8.

Change-Id: I3cbf2f317630bb72810b00f2d9b2c4b99fa812ad
gdb/c-exp.y