Re: [Qemu-devel] [PATCH] fix gcc warnings when RESERVED_VA is 0

2012-09-16 Thread Blue Swirl
On Sun, Sep 16, 2012 at 9:58 AM, Peter Maydell wrote: > On 16 September 2012 01:05, Mike Frysinger wrote: >> The current code, while correct, triggers a bunch of gcc warnings when >> RESERVED_VA is 0 like so: >> linux-user/syscall.c: In function 'do_shmat': >> linux-user/syscall.c:3058: warning:

Re: [Qemu-devel] [PATCH] fix gcc warnings when RESERVED_VA is 0

2012-09-16 Thread Peter Maydell
On 16 September 2012 01:05, Mike Frysinger wrote: > The current code, while correct, triggers a bunch of gcc warnings when > RESERVED_VA is 0 like so: > linux-user/syscall.c: In function 'do_shmat': > linux-user/syscall.c:3058: warning: comparison of unsigned expression < 0 is > always false > li

[Qemu-devel] [PATCH] fix gcc warnings when RESERVED_VA is 0

2012-09-15 Thread Mike Frysinger
The current code, while correct, triggers a bunch of gcc warnings when RESERVED_VA is 0 like so: linux-user/syscall.c: In function 'do_shmat': linux-user/syscall.c:3058: warning: comparison of unsigned expression < 0 is always false linux-user/syscall.c: In function 'open_self_maps': linux-user/sy