[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1197717495.25999.33.camel@sauron>
Date: Sat, 15 Dec 2007 13:18:15 +0200
From: Artem Bityutskiy <dedekind@...radead.org>
To: Jesper Juhl <jesper.juhl@...il.com>
Cc: linux-mtd@...ts.infradead.org, LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] UBI: silence warning about possibly uninitialized use
of variable in drivers/mtd/ubi/vmt.c ...
On Thu, 2007-12-13 at 23:53 +0100, Jesper Juhl wrote:
> From: Jesper Juhl <jesper.juhl@...il.com>
>
> This patch silences the following warning :
>
> drivers/mtd/ubi/vmt.c:73: warning: 'ret' may be used uninitialized in this function
>
> gcc can't see that we always initialize ret in all situations where it is
> actually used. The one case where it's not initialized is when we BUG(),
> but gcc doesn't know that we won't then continue and use an uninitialized
> 'ret'.
>
> This patch results in code that does exactely the same as before, but it
> also makes gcc shut up, so we generate one less line of warning noise.
>
>
> Signed-off-by: Jesper Juhl <jesper.juhl@...il.com>
Pushed to ubi-2.6.git, thanks.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists