qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Pavel@Janik.cz (Pavel Janík)
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Compiling on AMD64
Date: Wed, 02 Jun 2004 13:25:42 +0200	[thread overview]
Message-ID: <87smdedww9.fsf@Janik.cz> (raw)

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)

             reply	other threads:[~2004-06-02 11:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-02 11:25 Pavel Janík [this message]
2004-06-02 11:43 ` [Qemu-devel] Compiling on AMD64 Maurizio Monge

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87smdedww9.fsf@Janik.cz \
    --to=pavel@janik.cz \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).