diff options
-rw-r--r-- | disas/arm.c | 1 | ||||
-rw-r--r-- | include/disas/bfd.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/disas/arm.c b/disas/arm.c index 32f8ca992f..426270fe82 100644 --- a/disas/arm.c +++ b/disas/arm.c @@ -24,7 +24,6 @@ #include "qemu/osdep.h" #include "disas/bfd.h" -#define ATTRIBUTE_UNUSED __attribute__((unused)) #define ISSPACE(x) ((x) == ' ' || (x) == '\t' || (x) == '\n') #define ARM_EXT_V1 0 diff --git a/include/disas/bfd.h b/include/disas/bfd.h index 231e5fbf91..8a3488c2c5 100644 --- a/include/disas/bfd.h +++ b/include/disas/bfd.h @@ -477,7 +477,9 @@ int generic_symbol_at_address(bfd_vma, struct disassemble_info *); (INFO).disassembler_options = NULL, \ (INFO).insn_info_valid = 0 +#ifndef ATTRIBUTE_UNUSED #define ATTRIBUTE_UNUSED __attribute__((unused)) +#endif /* from libbfd */ |