aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/go/ChangeLog6
-rw-r--r--gcc/go/go-backend.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/go/ChangeLog b/gcc/go/ChangeLog
index 11fdd49..d25a523 100644
--- a/gcc/go/ChangeLog
+++ b/gcc/go/ChangeLog
@@ -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.
diff --git a/gcc/go/go-backend.c b/gcc/go/go-backend.c
index 15986dc..9ffe38a 100644
--- a/gcc/go/go-backend.c
+++ b/gcc/go/go-backend.c
@@ -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);
}