diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2019-06-30 19:19:43 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2019-09-08 09:59:31 +0200 |
commit | 1e452b1553d888ee42643ac591b2627d8de6649f (patch) | |
tree | 39772949b6dc976c8f37dc2dbf38a26a8695f43e /data | |
parent | ed796869bb0f2d0531e0de367737e18ccaf43016 (diff) | |
download | bison-1e452b1553d888ee42643ac591b2627d8de6649f.tar.gz |
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.
Diffstat (limited to 'data')
-rw-r--r-- | data/skeletons/lalr1.cc | 3 |
1 files changed, 0 insertions, 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 |