Avoid gcc j_len unused warning
authorAnton Blanchard <anton@samba.org>
Sat, 10 Apr 2010 18:06:34 +0000 (18:06 +0000)
committerTony Breeds <tony@bakeyournoodle.com>
Fri, 16 Jul 2010 05:39:08 +0000 (15:39 +1000)
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>
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
second/fs_reiserfs.c

index 4b83a7a..588a0ef 100644 (file)
@@ -213,7 +213,7 @@ block_read( __u32 blockNr, __u32 start, __u32 len, char *buffer )
      while ( transactions-- > 0 )
      {
          int i = 0;
-         int j_len;
+         int j_len = 0;
 
          if ( *journal_table != 0xffffffff )
          {