[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Compiling on AMD64
From: |
Pavel Janík |
Subject: |
[Qemu-devel] Compiling on AMD64 |
Date: |
Wed, 02 Jun 2004 13:25:42 +0200 |
User-agent: |
Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux) |
Hi,
there are several warning emitted while compiling on AMD64 target system:
gcc -Wall -O1 -g -D_GNU_SOURCE -o dyngen dyngen.c
dyngen.c: In function `gen_code':
dyngen.c:1109: warning: int format, different type arg (arg 4)
dyngen.c:1269: warning: int format, different type arg (arg 3)
dyngen.c:1273: warning: int format, different type arg (arg 3)
dyngen.c:1277: warning: int format, different type arg (arg 3)
dyngen.c:1277: warning: int format, different type arg (arg 5)
All those warnings come from
host_ulong start_offset;
fprintf(outfile, " memcpy(gen_code_ptr, (void *)((char *)&%s+%d),
%d);\n", name, start_offset - offset, copy_size);
where host_ulong (int64_t in case of AMD64) is formatted to %d.
--
Pavel Janík
Don't patch bad code - rewrite it.
-- The Elements of Programming Style (Kernighan & Plaugher)
- [Qemu-devel] Compiling on AMD64,
Pavel Janík <=