Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BVTuF-0006v5-7Y for qemu-devel@nongnu.org; Wed, 02 Jun 2004 07:27:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BVTuD-0006ut-Pl for qemu-devel@nongnu.org; Wed, 02 Jun 2004 07:27:39 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BVTuD-0006uq-MV for qemu-devel@nongnu.org; Wed, 02 Jun 2004 07:27:37 -0400 Received: from [195.122.192.2] (helo=janik.cz) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BVTsS-0003fO-3D for qemu-devel@nongnu.org; Wed, 02 Jun 2004 07:25:49 -0400 From: Pavel@Janik.cz (=?iso-8859-2?q?Pavel_Jan=EDk?=) Date: Wed, 02 Jun 2004 13:25:42 +0200 Message-ID: <87smdedww9.fsf@Janik.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] Compiling on AMD64 Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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. --=20 Pavel Jan=EDk Don't patch bad code - rewrite it. -- The Elements of Programming Style (Kernighan & Plau= gher)