qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Compiling on AMD64
@ 2004-06-02 11:25 Pavel Janík
  2004-06-02 11:43 ` Maurizio Monge
  0 siblings, 1 reply; 2+ messages in thread
From: Pavel Janík @ 2004-06-02 11:25 UTC (permalink / raw)
  To: qemu-devel

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)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-06-02 11:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-02 11:25 [Qemu-devel] Compiling on AMD64 Pavel Janík
2004-06-02 11:43 ` Maurizio Monge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).