From: Akim Demaille Date: Thu, 15 Jan 2015 13:25:40 +0000 (+0100) Subject: c++: avoid warnings when destructors don't use $$ X-Git-Tag: v3.0.4~12 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/3e82dfaa0dedffdfdc948a971deee3cbd2d965ba?ds=inline c++: avoid warnings when destructors don't use $$ * data/c++.m4: here. --- diff --git a/NEWS b/NEWS index 6f051b0f..2e38038e 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 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& yysym = *this; + (void) yysym; switch (yytype) { ]b4_symbol_foreach([b4_symbol_destructor])dnl