diff options
-rw-r--r-- | data/c++.m4 | 2 | ||||
-rw-r--r-- | 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 <typename Base> inline ]b4_parser_class_name[::basic_symbol<Base>& - ]b4_parser_class_name[::basic_symbol<Base>::operator= (const basic_symbol& other) + ]b4_parser_class_name[::basic_symbol<Base>::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() {} |