* parser.c (cp_parser_range_for): Remove the "unused variable" warning
workaround.
From-SVN: r168936
+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>
{
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;