Commit 86070dcc by Rodrigo Rivas Costa Committed by Jason Merrill

parser.c (cp_parser_range_for): Remove the "unused variable" warning workaround.

	* parser.c (cp_parser_range_for): Remove the "unused variable" warning
	workaround.

From-SVN: r168936
parent c7d3bb76
2011-01-14 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
* parser.c (cp_parser_range_for): Remove the "unused variable" warning
workaround.
2011-01-15 Giovanni Funchal <gafunchal@gmail.com>
Jonathan Wakely <jwakely.gcc@gmail.com>
......
......@@ -8760,15 +8760,6 @@ cp_parser_range_for (cp_parser *parser, tree scope, tree init, tree range_decl)
{
tree stmt, range_expr;
/* If the variable from a range-for is not actually used, GCC would issue
"unused variable" warnings, and the user could do little to prevent them.
So we always mark it as used. */
if (range_decl != error_mark_node)
{
TREE_USED (range_decl) = 1;
DECL_READ_P (range_decl) = 1;
}
if (cp_lexer_next_token_is (parser->lexer, CPP_OPEN_BRACE))
{
bool expr_non_constant_p;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment