diff options
author | Stefan Weil <weil@mail.berlios.de> | 2010-11-15 19:39:43 +0100 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-12-04 20:50:30 +0000 |
commit | a8e685fa6923bb91a29ce2dfbbfae9579fa6ac2e (patch) | |
tree | 688b8474064c2c03608f7219acb73b921e8d4455 /mips-dis.c | |
parent | bc7b5b18b033e9579334947fd891fd37923554cc (diff) | |
download | qemu-a8e685fa6923bb91a29ce2dfbbfae9579fa6ac2e.tar.gz qemu-a8e685fa6923bb91a29ce2dfbbfae9579fa6ac2e.tar.bz2 qemu-a8e685fa6923bb91a29ce2dfbbfae9579fa6ac2e.zip |
*-dis: Replace fprintf_ftype by fprintf_function (format checking)
This patch adds more printf format checking.
Additional modifications were needed for this code change:
* alpha-dis.c: The local definition of MAX conflicts with
a previous definition from osdep.h, so add an #undef.
* dis-asm.h: Add include for fprintf_function (qemu-common.h).
The standard (now redundant) includes are removed.
* mis-dis.c: The definition of ARRAY_SIZE is no longer needed
and must be removed (conflict with previous definition from
qemu-common.h).
* sh4-dis.c: Remove some unneeded forward declarations.
Cc: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'mips-dis.c')
-rw-r--r-- | mips-dis.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mips-dis.c b/mips-dis.c index 279b591057..4d8e85bd94 100644 --- a/mips-dis.c +++ b/mips-dis.c @@ -3117,8 +3117,6 @@ struct mips_arch_choice #define bfd_mach_mipsisa64 64 #define bfd_mach_mipsisa64r2 65 -#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) - static const struct mips_arch_choice mips_arch_choices[] = { { "numeric", 0, 0, 0, 0, |