qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] tests: fix 64-bit int literals for 32-bit hosts


From: Laszlo Ersek
Subject: Re: [Qemu-devel] [PATCH] tests: fix 64-bit int literals for 32-bit hosts
Date: Tue, 05 Nov 2013 18:07:07 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130912 Thunderbird/17.0.9

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 <address@hidden>
> ---
>  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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]