qemu/disas
Peter Maydell 5d3217340a disas: Fix ATTRIBUTE_UNUSED define clash with ALSA headers
disas/bfd.h defines ATTRIBUTE_UNUSED, but unfortunately the
ALSA system headers also define this macro, which means that
you can get a compilation failure if building with ALSA and
any files happen to include the alsa headers before bfd.h
rather than the other way around.

This is unfortunate namespace pollution by the ALSA headers but
we can work around it. Add an #ifndef guard to bfd.h and remove
the unnecessary extra definition in disas/arm.c to fix this.

Reported-by: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1468937076-21503-1-git-send-email-peter.maydell@linaro.org
2016-07-19 16:40:39 +01:00
..
libvixl libvixl: Avoid std::abs() of 64-bit type 2016-02-03 13:46:34 +00:00
Makefile.objs disas/libvixl: Suppress gcc 4.6.3 sign-compare warnings 2016-01-12 16:45:45 +00:00
alpha.c disas: Remove unused macro '_' 2016-07-18 18:13:54 +01:00
arm-a64.cc disas/arm-a64.cc: Include osdep.h first 2016-02-23 12:43:04 +00:00
arm.c disas: Fix ATTRIBUTE_UNUSED define clash with ALSA headers 2016-07-19 16:40:39 +01:00
cris.c cris: Clean up includes 2016-01-29 15:07:24 +00:00
hppa.c disas: Clean up includes 2016-02-04 17:41:30 +00:00
i386.c disas: Remove unused macro '_' 2016-07-18 18:13:54 +01:00
ia64.c disas: Clean up includes 2016-02-04 17:41:30 +00:00
lm32.c lm32: Clean up includes 2016-01-29 15:07:22 +00:00
m68k.c disas: Remove unused macro '_' 2016-07-18 18:13:54 +01:00
microblaze.c disas/microblaze.c: Don't define TRUE or FALSE 2016-01-28 11:13:13 +00:00
mips.c disas: Remove unused macro '_' 2016-07-18 18:13:54 +01:00
moxie.c moxie: Clean up includes 2016-01-29 15:07:25 +00:00
ppc.c disas: Remove unused macro '_' 2016-07-18 18:13:54 +01:00
s390.c disas: Clean up includes 2016-02-04 17:41:30 +00:00
sh4.c sh4: Clean up includes 2016-01-29 15:07:24 +00:00
sparc.c disas: Remove unused macro '_' 2016-07-18 18:13:54 +01:00
tci.c tci: do not include exec/exec-all.h 2016-05-20 15:07:46 +01:00