From 3e0baa280f5f03b3c9cb7c516cca7bf8ca68bece Mon Sep 17 00:00:00 2001 From: Yufeng Zhang Date: Tue, 20 Nov 2012 10:29:00 +0000 Subject: [PATCH] gas/ChangeLog 2012-11-20 Yufeng Zhang * config/tc-aarch64.c (first_error_fmt): Add ATTRIBUTE_UNUSED to the local variable "ret". --- gas/ChangeLog | 5 +++++ gas/config/tc-aarch64.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index bce371f..33cb949 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2012-11-20 Yufeng Zhang + + * config/tc-aarch64.c (first_error_fmt): Add ATTRIBUTE_UNUSED to the + local variable "ret". + 2012-11-20 David S. Miller * config/tc-sparc.c (md_parse_option): Only certain arch diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c index e7a2fe0..bf72a13 100644 --- a/gas/config/tc-aarch64.c +++ b/gas/config/tc-aarch64.c @@ -643,7 +643,7 @@ first_error_fmt (const char *format, ...) if (! error_p ()) { - int ret; + int ret ATTRIBUTE_UNUSED; va_start (args, format); ret = vsnprintf (buffer, size, format, args); know (ret <= size - 1 && ret >= 0); -- 2.7.4