From afc219a7657a482fedad8ded786f3400f8ea105f Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sun, 30 Jun 2019 19:19:43 +0200 Subject: [PATCH] c++: avoid duplicate definition of YYUSE Reported by Frank Heckenbach. https://lists.gnu.org/archive/html/bug-bison/2019-06/msg00009.html * data/skeletons/lalr1.cc (b4_shared_declarations): Remove the duplicate definition of YYUSE, the other one coming from b4_attribute_define. --- data/skeletons/lalr1.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/data/skeletons/lalr1.cc b/data/skeletons/lalr1.cc index ef5d76f5..d1c30403 100644 --- a/data/skeletons/lalr1.cc +++ b/data/skeletons/lalr1.cc @@ -459,9 +459,6 @@ m4_if(b4_prefix, [yy], [], [#define YYRHSLOC(Rhs, K) ((Rhs)[K].location) ]b4_yylloc_default_define])[ -// Suppress unused-variable warnings by "using" E. -#define YYUSE(E) ((void) (E)) - // Enable debugging if requested. #if ]b4_api_PREFIX[DEBUG