mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
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:
@@ -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 ();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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()
|
||||||
{}
|
{}
|
||||||
|
|||||||
Reference in New Issue
Block a user