[PATCH 9/10] Avoid gcc j_len unused warning
Anton Blanchard
anton at samba.org
Sun Apr 11 14:06:34 EST 2010
gcc is spewing an unused warning about j_len. We initialise it in both
cases of the if statement, but initialise it to 0 anyway to avoid the warning.
Signed-off-by: Anton Blanchard <anton at samba.org>
---
Index: yaboot/second/fs_reiserfs.c
===================================================================
--- yaboot.orig/second/fs_reiserfs.c 2010-04-11 12:17:51.000000000 +1000
+++ yaboot/second/fs_reiserfs.c 2010-04-11 12:18:00.000000000 +1000
@@ -211,7 +211,7 @@ block_read( __u32 blockNr, __u32 start,
while ( transactions-- > 0 )
{
int i = 0;
- int j_len;
+ int j_len = 0;
if ( *journal_table != 0xffffffff )
{
More information about the Yaboot-devel
mailing list