From: Theophile Ranquet Date: Mon, 14 Jan 2013 18:25:35 +0000 (+0100) Subject: c++: silence warnings X-Git-Tag: v2.7.90~173 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/60607adb3c14bd0fea3eb217b1a9fccd2c308122 c++: silence warnings * data/c++.m4 (basic_symbol::operator=): Unused parameter. * tests/c++.at (C++ GLR parser identifier shadowing): Here too. - --- diff --git a/data/c++.m4 b/data/c++.m4 index d3b78f13..14dd077d 100644 --- a/data/c++.m4 +++ b/data/c++.m4 @@ -256,7 +256,7 @@ m4_define([b4_public_types_define], template inline ]b4_parser_class_name[::basic_symbol& - ]b4_parser_class_name[::basic_symbol::operator= (const basic_symbol& other) + ]b4_parser_class_name[::basic_symbol::operator= (const basic_symbol&) { abort (); } diff --git a/tests/c++.at b/tests/c++.at index b43e078a..ad08b8ad 100644 --- a/tests/c++.at +++ b/tests/c++.at @@ -781,11 +781,14 @@ exp: ZERO int yylex (yy::parser::semantic_type *yylval) { + (void) *yylval; return yy::parser::token::ZERO; } void yy::parser::error (std::string const& msg) -{} +{ + (void) msg; +} int main() {}