From: Tom Rini Date: Mon, 23 Jul 2012 11:56:00 -0700 Subject: [U-Boot] [PATCH v2] ext2fs: fix warning: 'blocknxt' may be used uninitialized In-Reply-To: <20120708205516.791CC20012A@gemini.denx.de> References: <1332945431-12441-1-git-send-email-u-boot@lakedaemon.net> <1338566090-15008-1-git-send-email-u-boot@lakedaemon.net> <20120621204947.21CBE202253@gemini.denx.de> <20120703110542.c8b827398ebcedf3448725e1@freescale.com> <4FF36E3C.4000808@googlemail.com> <20120703174156.a1082309c2b205216606a004@freescale.com> <20120708205516.791CC20012A@gemini.denx.de> Message-ID: <20120723185600.GA8985@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Jul 08, 2012 at 10:55:16PM +0200, Wolfgang Denk wrote: > Dear Kim Phillips, > > In message <20120703174156.a1082309c2b205216606a004@freescale.com> you wrote: > > This warning was introduced in 436da3c "ext2load: increase read > > speed": > > > > ext2fs.c: In function 'ext2fs_read_file': > > ext2fs.c:458:19: warning: 'blocknxt' may be used uninitialized in this func= > > tion [-Wuninitialized] > > > > this change makes it go away. > > > > Cc: Eric Nelson > > Cc: Thierry Reding > > Cc: Jason Cooper > > Cc: Andreas Bie=DFmann > > Cc: Reinhard Arlt > > Signed-off-by: Kim Phillips > > --- > > v2: changed to Thierry's recommendation in: > > > > http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/134043 > > > > build-tested only - please ack > > > > fs/ext2/ext2fs.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > Applied, thanks. This doesn't fix the warning for ELDK 4.2 toolchains (gcc 4.2.2): ext2fs.c: In function 'ext2fs_read_file': ext2fs.c:443: warning: 'blocknxt' may be used uninitialized in this function -- Tom