c++: silence warnings

* data/c++.m4 (basic_symbol<Base>::operator=): Unused parameter.
* tests/c++.at (C++ GLR parser identifier shadowing): Here too.
-
This commit is contained in:
Theophile Ranquet
2013-01-14 19:25:35 +01:00
parent 8b4499ad04
commit 60607adb3c
2 changed files with 5 additions and 2 deletions

View File

@@ -256,7 +256,7 @@ m4_define([b4_public_types_define],
template <typename Base> template <typename Base>
inline inline
]b4_parser_class_name[::basic_symbol<Base>& ]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 (); abort ();
} }

View File

@@ -781,11 +781,14 @@ exp: ZERO
int yylex (yy::parser::semantic_type *yylval) int yylex (yy::parser::semantic_type *yylval)
{ {
(void) *yylval;
return yy::parser::token::ZERO; return yy::parser::token::ZERO;
} }
void yy::parser::error (std::string const& msg) void yy::parser::error (std::string const& msg)
{} {
(void) msg;
}
int main() int main()
{} {}