c++: avoid warnings when destructors don't use $$

* data/c++.m4: here.
This commit is contained in:
Akim Demaille
2015-01-15 14:25:40 +01:00
parent 11d820174f
commit 3e82dfaa0d
2 changed files with 6 additions and 0 deletions

5
NEWS
View File

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

View File

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