From b28b8b5e31903f59b00a4664b8204409e1e5bb91 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 7 Aug 2017 08:07:26 -0700 Subject: [PATCH] Mark big and mach with ATTRIBUTE_UNUSED MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix build on x86: opcodes/disassemble.c: In function ‘disassembler’: opcodes/disassemble.c:113:52: error: unused parameter ‘big’ [-Werror=unused-parameter] disassembler (enum bfd_architecture a, bfd_boolean big, unsigned long mach, ^~~ opcodes/disassemble.c:113:71: error: unused parameter ‘mach’ [-Werror=unused-parameter] disassembler (enum bfd_architecture a, bfd_boolean big, unsigned long mach, ^~~~ cc1: all warnings being treated as errors * disassemble.c (disassembler): Mark big and mach with ATTRIBUTE_UNUSED. --- opcodes/ChangeLog | 5 +++++ opcodes/disassemble.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 61572ddd297..4414037ee68 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2017-08-07 H.J. Lu + + * disassemble.c (disassembler): Mark big and mach with + ATTRIBUTE_UNUSED. + 2017-08-07 Maciej W. Rozycki * disassemble.c (disassembler): Remove arch/mach/endian diff --git a/opcodes/disassemble.c b/opcodes/disassemble.c index 00583542655..11206c67a5f 100644 --- a/opcodes/disassemble.c +++ b/opcodes/disassemble.c @@ -110,7 +110,9 @@ #endif disassembler_ftype -disassembler (enum bfd_architecture a, bfd_boolean big, unsigned long mach, +disassembler (enum bfd_architecture a, + bfd_boolean big ATTRIBUTE_UNUSED, + unsigned long mach ATTRIBUTE_UNUSED, bfd *abfd ATTRIBUTE_UNUSED) { disassembler_ftype disassemble; -- 2.30.2