From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53766) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vdk3M-0001P9-Qu for qemu-devel@nongnu.org; Tue, 05 Nov 2013 12:04:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vdk3F-0007E7-8G for qemu-devel@nongnu.org; Tue, 05 Nov 2013 12:04:32 -0500 Received: from mx1.redhat.com ([209.132.183.28]:20465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vdk3F-0007Dy-0E for qemu-devel@nongnu.org; Tue, 05 Nov 2013 12:04:25 -0500 Message-ID: <527925BB.7010908@redhat.com> Date: Tue, 05 Nov 2013 18:07:07 +0100 From: Laszlo Ersek MIME-Version: 1.0 References: <1383669768-23926-1-git-send-email-stefanha@redhat.com> In-Reply-To: <1383669768-23926-1-git-send-email-stefanha@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] tests: fix 64-bit int literals for 32-bit hosts List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: alex.bennee@linaro.org, qemu-devel@nongnu.org On 11/05/13 17:42, Stefan Hajnoczi wrote: > On 32-bit hosts: > > CC tests/test-opts-visitor.o > tests/test-opts-visitor.c: In function 'test_value': > tests/test-opts-visitor.c:128: warning: integer constant is too large for 'long' type > CC tests/test-bitops.o > tests/test-bitops.c:34: warning: integer constant is too large for 'long' type > tests/test-bitops.c:35: warning: integer constant is too large for 'long' type > tests/test-bitops.c:35: warning: integer constant is too large for 'long' type > CC tests/endianness-test.o > tests/endianness-test.c:47: warning: integer constant is too large for 'long' type > > Signed-off-by: Stefan Hajnoczi > --- > tests/endianness-test.c | 3 ++- > tests/test-bitops.c | 4 ++-- > tests/test-opts-visitor.c | 2 +- > 3 files changed, 5 insertions(+), 4 deletions(-) Blame it on still using gnu89 instead of c99 (or gnu99 if must be). Laszlo