re PR go/47113 (go_field_alignment: field set but not used)

PR go/47113
	* go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
	variable ‘field’ .

From-SVN: r168373
This commit is contained in:
Joern Rennecke 2010-12-31 12:24:12 +00:00 committed by Joern Rennecke
parent 2e09f014c7
commit efdfdfa788
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2010-12-31 Joern Rennecke <amylaar@spamcop.net>
PR go/47113
* go-backend.c: (go_field_alignment): Add ATTRIBUTE_UNUSED to
variable field .
2010-12-21 Ian Lance Taylor <iant@google.com>
* Make-lang.in (check-go): Remove.

View File

@ -53,7 +53,7 @@ go_field_alignment (tree t)
#ifdef ADJUST_FIELD_ALIGN
{
tree field;
tree field ATTRIBUTE_UNUSED;
field = build_decl (UNKNOWN_LOCATION, FIELD_DECL, NULL, t);
v = ADJUST_FIELD_ALIGN (field, v);
}