From: Stefan Weil Date: Mon, 15 Nov 2010 20:00:48 +0000 (+0100) Subject: darwin-user: Use GCC_FMT_ATTR (format checking) X-Git-Tag: v0.14.0-rc0~395 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=edcdd562baff02bb8de974c46a2b984b7d5b0da9;p=thirdparty%2Fqemu.git darwin-user: Use GCC_FMT_ATTR (format checking) The redundant forward declaration of qerror in machload.c is removed because it should be taken from qemu.h. Please note that this patch is untested because I have no matching environment to compile it. Cc: Blue Swirl Signed-off-by: Stefan Weil Signed-off-by: Blue Swirl --- diff --git a/darwin-user/machload.c b/darwin-user/machload.c index 4bb5c7276a2..3bc3b655599 100644 --- a/darwin-user/machload.c +++ b/darwin-user/machload.c @@ -82,7 +82,7 @@ void *macho_text_sect = 0; int macho_offset = 0; int load_object(const char *filename, struct target_pt_regs * regs, void ** mh); -void qerror(const char *format, ...); + #ifdef TARGET_I386 typedef struct mach_i386_thread_state { unsigned int eax; diff --git a/darwin-user/qemu.h b/darwin-user/qemu.h index 0c5081ba325..b6d3e6cbf0c 100644 --- a/darwin-user/qemu.h +++ b/darwin-user/qemu.h @@ -100,7 +100,7 @@ int do_sigaction(int sig, const struct sigaction *act, int do_sigaltstack(const struct sigaltstack *ss, struct sigaltstack *oss); void gemu_log(const char *fmt, ...) GCC_FMT_ATTR(1, 2); -void qerror(const char *fmt, ...); +void qerror(const char *fmt, ...) GCC_FMT_ATTR(1, 2); void write_dt(void *ptr, unsigned long addr, unsigned long limit, int flags);