From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=49466 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PI5Eu-00027v-Qo for qemu-devel@nongnu.org; Mon, 15 Nov 2010 15:01:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PI5ES-0004lY-BQ for qemu-devel@nongnu.org; Mon, 15 Nov 2010 15:01:19 -0500 Received: from moutng.kundenserver.de ([212.227.126.171]:57490) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PI5ES-0004lI-11 for qemu-devel@nongnu.org; Mon, 15 Nov 2010 15:00:52 -0500 From: Stefan Weil Date: Mon, 15 Nov 2010 21:00:48 +0100 Message-Id: <1289851248-20687-1-git-send-email-weil@mail.berlios.de> Subject: [Qemu-devel] [PATCH] darwin-user: Use GCC_FMT_ATTR (format checking) List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Developers Cc: Blue Swirl 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 --- darwin-user/machload.c | 2 +- darwin-user/qemu.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/darwin-user/machload.c b/darwin-user/machload.c index 4bb5c72..3bc3b65 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 0c5081b..b6d3e6c 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); -- 1.7.2.3