Mark big and mach with ATTRIBUTE_UNUSED
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 7 Aug 2017 15:07:26 +0000 (08:07 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 7 Aug 2017 15:07:26 +0000 (08:07 -0700)
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
opcodes/disassemble.c

index 61572ddd297b76954b28ea698fcfa6663fb51852..4414037ee685195d84aa330ceefba7d2ac3cb638 100644 (file)
@@ -1,3 +1,8 @@
+2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * disassemble.c (disassembler): Mark big and mach with
+       ATTRIBUTE_UNUSED.
+
 2017-08-07  Maciej W. Rozycki  <macro@imgtec.com>
 
        * disassemble.c (disassembler): Remove arch/mach/endian
index 00583542655de5aa28745c2434c0ee8cf92c9b6b..11206c67a5f2ce843e2cbcd558d045ca0d17fd63 100644 (file)
 #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;