From 60607adb3c14bd0fea3eb217b1a9fccd2c308122 Mon Sep 17 00:00:00 2001 From: Theophile Ranquet Date: Mon, 14 Jan 2013 19:25:35 +0100 Subject: [PATCH] c++: silence warnings * data/c++.m4 (basic_symbol::operator=): Unused parameter. * tests/c++.at (C++ GLR parser identifier shadowing): Here too. - --- data/c++.m4 | 2 +- tests/c++.at | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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() {} -- 2.45.2