From f67341b6248741fa1d7ccc508c2692988b42c576 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sun, 20 Jul 2014 20:26:20 +0000 Subject: compiler: If a variable that is only set, give not used error. From-SVN: r212876 --- gcc/go/gofrontend/parse.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/go/gofrontend/parse.h') diff --git a/gcc/go/gofrontend/parse.h b/gcc/go/gofrontend/parse.h index 99e0eee..3a7bbd5 100644 --- a/gcc/go/gofrontend/parse.h +++ b/gcc/go/gofrontend/parse.h @@ -236,7 +236,7 @@ class Parse bool* is_type_switch, bool* is_parenthesized); Type* reassociate_chan_direction(Channel_type*, Location); Expression* qualified_expr(Expression*, Location); - Expression* id_to_expression(const std::string&, Location); + Expression* id_to_expression(const std::string&, Location, bool); void statement(Label*); bool statement_may_start_here(); void labeled_stmt(const std::string&, Location); -- cgit v1.1