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.
This commit is contained in:
Akim Demaille
2019-06-30 19:19:43 +02:00
parent ed796869bb
commit 1e452b1553

View File

@@ -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