Skip to content

Commit

Permalink
darwin-user: Use GCC_FMT_ATTR (format checking)
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Stefan Weil <[email protected]>
Signed-off-by: Blue Swirl <[email protected]>
  • Loading branch information
Stefan Weil authored and blueswirl committed Dec 4, 2010
1 parent ab9de36 commit edcdd56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion darwin-user/machload.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion darwin-user/qemu.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit edcdd56

Please sign in to comment.