diff mbox

[9/10] Avoid gcc j_len unused warning

Message ID 20100411040634.GF11751@kryten
State Changes Requested
Headers show

Commit Message

Anton Blanchard April 11, 2010, 4:06 a.m. UTC
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@samba.org>
---
diff mbox

Patch

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 )
 	  {