qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: [PATCH] block/vvfat: Fix compiler warning in debug code


From: Blue Swirl
Subject: [Qemu-devel] Re: [PATCH] block/vvfat: Fix compiler warning in debug code
Date: Sun, 3 Oct 2010 07:50:39 +0000

Thanks, applied.

On Thu, Sep 30, 2010 at 7:15 PM, Stefan Weil <address@hidden> wrote:
> Fix this compiler warning:
> ./block/vvfat.c:2285: error: comparison of unsigned expression >= 0 is always 
> true
>
> Cc: Blue Swirl <address@hidden>
> Cc: Kevin Wolf <address@hidden>
> Signed-off-by: Stefan Weil <address@hidden>
> ---
>  block/vvfat.c |    1 -
>  1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/block/vvfat.c b/block/vvfat.c
> index 53e57bf..26dd474 100644
> --- a/block/vvfat.c
> +++ b/block/vvfat.c
> @@ -2282,7 +2282,6 @@ static void check1(BDRVVVFATState* s)
>            fprintf(stderr, "deleted\n");
>            continue;
>        }
> -       assert(mapping->dir_index >= 0);
>        assert(mapping->dir_index < s->directory.next);
>        direntry_t* direntry = array_get(&(s->directory), mapping->dir_index);
>        assert(mapping->begin == begin_of_direntry(direntry) || 
> mapping->first_mapping_index >= 0);
> --
> 1.7.1
>
>



reply via email to

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