]> git.saurik.com Git - bison.git/commitdiff
c++: avoid warnings when destructors don't use $$
authorAkim Demaille <akim@lrde.epita.fr>
Thu, 15 Jan 2015 13:25:40 +0000 (14:25 +0100)
committerAkim Demaille <akim@lrde.epita.fr>
Thu, 15 Jan 2015 13:29:22 +0000 (14:29 +0100)
* data/c++.m4: here.

NEWS
data/c++.m4

diff --git a/NEWS b/NEWS
index 6f051b0f0526d0afeebb63fbdcc561a8dae9416a..2e38038e179df8a37b181e4ceb47876ffadded8d 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -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]
 
index 4321c3056e1e3be6c80bd3b0933dd6d243b86d46..d176e1a269fb3b4bfade548b70fc038b91c5b960 100644 (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