diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-08-07 08:07:26 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-08-07 08:07:26 -0700 |
commit | b28b8b5e31903f59b00a4664b8204409e1e5bb91 (patch) | |
tree | 4e3d636b3a92f1dafa29faf722b4707180d0941b /opcodes/disassemble.c | |
parent | 2980ccad5958af178f80fd2a2a0fa781bf91b0aa (diff) | |
download | gdb-b28b8b5e31903f59b00a4664b8204409e1e5bb91.zip gdb-b28b8b5e31903f59b00a4664b8204409e1e5bb91.tar.gz gdb-b28b8b5e31903f59b00a4664b8204409e1e5bb91.tar.bz2 |
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.
Diffstat (limited to 'opcodes/disassemble.c')
-rw-r--r-- | opcodes/disassemble.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/opcodes/disassemble.c b/opcodes/disassemble.c index 0058354..11206c6 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; |