diff options
author | Akim Demaille <akim@lrde.epita.fr> | 2015-01-15 14:25:40 +0100 |
---|---|---|
committer | Akim Demaille <akim@lrde.epita.fr> | 2015-01-15 14:29:22 +0100 |
commit | 3e82dfaa0dedffdfdc948a971deee3cbd2d965ba (patch) | |
tree | 2125c66ad2b4477c65d09507cee6c01ff43b838d | |
parent | 11d820174fef8e2037ee512f5a5560a2cecd6e1d (diff) | |
download | bison-3e82dfaa0dedffdfdc948a971deee3cbd2d965ba.tar.gz |
c++: avoid warnings when destructors don't use $$
* data/c++.m4: here.
-rw-r--r-- | NEWS | 5 | ||||
-rw-r--r-- | data/c++.m4 | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -2,6 +2,11 @@ GNU Bison NEWS * Noteworthy changes in release ?.? (????-??-??) [?] +** Bug fixes + +*** C++ with Variants (lalr1.cc) + + Fix a compiler warning when no %destructor use $$. * Noteworthy changes in release 3.0.3 (2015-01-15) [stable] diff --git a/data/c++.m4 b/data/c++.m4 index 4321c305..d176e1a2 100644 --- a/data/c++.m4 +++ b/data/c++.m4 @@ -347,6 +347,7 @@ m4_define([b4_public_types_define], // User destructor. symbol_number_type yytype = this->type_get (); basic_symbol<Base>& yysym = *this; + (void) yysym; switch (yytype) { ]b4_symbol_foreach([b4_symbol_destructor])dnl |