From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38758) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwYPf-0002d0-AJ for qemu-devel@nongnu.org; Wed, 11 Nov 2015 11:38:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZwYPe-00062d-6l for qemu-devel@nongnu.org; Wed, 11 Nov 2015 11:38:23 -0500 References: <1447164580-31094-1-git-send-email-kwolf@redhat.com> <20151111153531.GA3947@noname.redhat.com> From: Eric Blake Message-ID: <56436EF9.8060104@redhat.com> Date: Wed, 11 Nov 2015 09:38:17 -0700 MIME-Version: 1.0 In-Reply-To: <20151111153531.GA3947@noname.redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="DeQTRSXKcowckf5ExSu1vsajITPjN4Ru9" Subject: Re: [Qemu-devel] [PULL v2 00/40] Block layer patches List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf , Peter Maydell Cc: QEMU Developers , Qemu-block This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --DeQTRSXKcowckf5ExSu1vsajITPjN4Ru9 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 11/11/2015 08:35 AM, Kevin Wolf wrote: >> Also some warnings: >> >> /Users/pm215/src/qemu-for-merges/qemu-io-cmds.c:772:56: warning: >> format specifies type 'size_t' (aka 'unsigned long') but the argument >> has type 'unsigned long lo >> ng' [-Wformat] >> printf("length cannot exceed %zu, given %s\n", SIZE_MAX, argv[= optind]); >> ~~~ ^~~~~~~~ >> %llu >> /usr/include/stdint.h:153:20: note: expanded from macro 'SIZE_MAX' >> #define SIZE_MAX UINT64_MAX >> ^~~~~~~~~~ >> /usr/include/stdint.h:87:27: note: expanded from macro 'UINT64_MAX' >> #define UINT64_MAX 18446744073709551615ULL >> ^~~~~~~~~~~~~~~~~~~~~~~ >=20 > Isn't that actually a bug in the system headers? If I understand the > spec correctly, SIZE_MAX should be size_t. ("this expression shall have= > the same type as would an expression that is an object of the > corresponding type converted according to the integer promotions.") You are correct; the system headers are buggy. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --DeQTRSXKcowckf5ExSu1vsajITPjN4Ru9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJWQ275AAoJEKeha0olJ0NqgDEIAJe9smrn3a/zINlxc6KIPjc6 3nzh0Scix6idA987r8heGYkJ21WgG5NQ/F26PMasRklSDHJo9De/GZrWO0VjQlqz SJ/lY7RUk1lqtFIS8IhdJZLmVSZcCVnzItQ8iZ9OzXVdvOriw3LxFHbwEueKKeHN MSZlI2cIAKM4W76y5lNK79yLtpU6QF7TN7bC3KOCTUQmXRPbcPCHom0VPWjeBGSd 3TZZbkts33r7FpnvWR3c8dpLdaE0y4cgqDLB2FqkGhhC/QQI2YO4N6LsE1WwL0wa baPVrD9j6VoFUDOEJlBKvn80YwRIoMVWoAP5G2az9KeBOqptUH+HHDKuHx0quYk= =SqSe -----END PGP SIGNATURE----- --DeQTRSXKcowckf5ExSu1vsajITPjN4Ru9--