From 6e2d864edf5ef4d75e2fec061f4cd247b4d315be Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Mon, 15 Nov 2010 19:39:43 +0100 Subject: *-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 Signed-off-by: Stefan Weil Signed-off-by: Blue Swirl --- alpha-dis.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'alpha-dis.c') diff --git a/alpha-dis.c b/alpha-dis.c index 970da5b..8a2411e 100644 --- a/alpha-dis.c +++ b/alpha-dis.c @@ -22,6 +22,9 @@ along with this file; see the file COPYING. If not, see #include #include "dis-asm.h" +/* MAX is redefined below, so remove any previous definition. */ +#undef MAX + /* The opcode table is an array of struct alpha_opcode. */ struct alpha_opcode -- cgit v1.1