From: H.J. Lu Date: Mon, 7 Aug 2017 15:07:26 +0000 (-0700) Subject: Mark big and mach with ATTRIBUTE_UNUSED X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b28b8b5e31903f59b00a4664b8204409e1e5bb91;p=binutils-gdb.git Mark big and mach with ATTRIBUTE_UNUSED 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. --- 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;