bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/3] c++: avoid warnings when destructors don't use $$


From: Akim Demaille
Subject: [PATCH 1/3] c++: avoid warnings when destructors don't use $$
Date: Fri, 16 Jan 2015 14:50:24 +0100

* data/c++.m4: here.
---
 NEWS        | 5 +++++
 data/c++.m4 | 1 +
 2 files changed, 6 insertions(+)

diff --git a/NEWS b/NEWS
index 6f051b0..2e38038 100644
--- 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]
 
diff --git a/data/c++.m4 b/data/c++.m4
index 4321c30..d176e1a 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
-- 
2.2.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]