[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/6] disas: Remove unused macro '_'
From: |
Lluís Vilanova |
Subject: |
[Qemu-devel] [PATCH 2/6] disas: Remove unused macro '_' |
Date: |
Thu, 25 Feb 2016 16:02:55 +0100 |
User-agent: |
StGit/0.17.1-dirty |
Eliminates a future compilation error when UI code includes the tracing
headers (indirectly pulling "disas/bfd.h" through "qom/cpu.h") and
GLib's i18n '_' macro.
Signed-off-by: Lluís Vilanova <address@hidden>
---
disas/i386.c | 2 +-
include/disas/bfd.h | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/disas/i386.c b/disas/i386.c
index d40b72a..8f4025a 100644
--- a/disas/i386.c
+++ b/disas/i386.c
@@ -3406,7 +3406,7 @@ static const struct dis386 three_byte_table[][256] = {
}
};
-#define INTERNAL_DISASSEMBLER_ERROR _("<internal disassembler error>")
+#define INTERNAL_DISASSEMBLER_ERROR "<internal disassembler error>"
static void
ckprefix (void)
diff --git a/include/disas/bfd.h b/include/disas/bfd.h
index a112e9c..a761d5b 100644
--- a/include/disas/bfd.h
+++ b/include/disas/bfd.h
@@ -477,7 +477,6 @@ int generic_symbol_at_address(bfd_vma, struct
disassemble_info *);
(INFO).disassembler_options = NULL, \
(INFO).insn_info_valid = 0
-#define _(x) x
#define ATTRIBUTE_UNUSED __attribute__((unused))
/* from libbfd */
- [Qemu-devel] [PATCH0/6] trace: Per-vCPU tracing states, Lluís Vilanova, 2016/02/25
- [Qemu-devel] [PATCH 1/6] trace: Identify events with the 'vcpu' property, Lluís Vilanova, 2016/02/25
- [Qemu-devel] [PATCH 2/6] disas: Remove unused macro '_',
Lluís Vilanova <=
- [Qemu-devel] [PATCH 3/6] [trivial] trace: Cosmetic changes on fast-path tracing, Lluís Vilanova, 2016/02/25
- [Qemu-devel] [PATCH 5/6] trace: Conditionally trace events based on their per-vCPU state, Lluís Vilanova, 2016/02/25
- [Qemu-devel] [PATCH 6/6] trace: Add QAPI/QMP interfaces to query and control per-vCPU tracing state, Lluís Vilanova, 2016/02/25
- [Qemu-devel] [PATCH 4/6] trace: Add per-vCPU tracing states for events with the 'vcpu' property, Lluís Vilanova, 2016/02/25