Patchwork [2/4] darwin-user: Add GCC attribute (check format arguments)

login
register
mail settings
Submitter Stefan Weil
Date July 1, 2010, 11:08 a.m.
Message ID <1277982502-4196-3-git-send-email-weil@mail.berlios.de>
Download mbox | patch
Permalink /patch/57535/
State Superseded
Headers show

Comments

Stefan Weil - July 1, 2010, 11:08 a.m.
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
---
 darwin-user/qemu.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/darwin-user/qemu.h b/darwin-user/qemu.h
index 462bbda..c8adce7 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, ...) __attribute__((format(printf,1,2)));
-void qerror(const char *fmt, ...);
+void qerror(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
 
 void write_dt(void *ptr, unsigned long addr, unsigned long limit, int flags);