diff options
Diffstat (limited to 'gcc/go')
-rw-r--r-- | gcc/go/gofrontend/MERGE | 2 | ||||
-rw-r--r-- | gcc/go/gofrontend/gogo.cc | 2 | ||||
-rw-r--r-- | gcc/go/gofrontend/parse.cc | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index d6ee857..183e5ca 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -720b8fed93143f284ca04358e1b13c8a3487281e +6b01f8cdc11d86bd98165c91d6ae101bcf6b9e1a The first line of this file holds the git revision number of the last merge done from the gofrontend repository. diff --git a/gcc/go/gofrontend/gogo.cc b/gcc/go/gofrontend/gogo.cc index 93a4a57..a5e4521 100644 --- a/gcc/go/gofrontend/gogo.cc +++ b/gcc/go/gofrontend/gogo.cc @@ -3744,7 +3744,7 @@ Check_types_traverse::variable(Named_object* named_object) && !var->type()->is_error() && (init == NULL || !init->is_error_expression()) && !Lex::is_invalid_identifier(named_object->name())) - go_error_at(var->location(), "%qs declared and not used", + go_error_at(var->location(), "%qs declared but not used", named_object->message_name().c_str()); } return TRAVERSE_CONTINUE; diff --git a/gcc/go/gofrontend/parse.cc b/gcc/go/gofrontend/parse.cc index 00ac2f8..b1925ed 100644 --- a/gcc/go/gofrontend/parse.cc +++ b/gcc/go/gofrontend/parse.cc @@ -4817,7 +4817,7 @@ Parse::type_switch_body(Label* label, const Type_switch& type_switch, } } if (!used) - go_error_at(type_switch.location, "%qs declared and not used", + go_error_at(type_switch.location, "%qs declared but not used", Gogo::message_name(var_name).c_str()); } return statement; |