aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/recovery.c
diff options
context:
space:
mode:
authorakpm@linux-foundation.org <akpm@linux-foundation.org>2008-03-12 17:01:29 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2008-03-31 05:41:41 -0400
commitf5a8cd020173c455705fc0095b7d299da6f8f87b (patch)
tree1468178666f6adc40d5c13f3658e0e565a5dd17c /fs/gfs2/recovery.c
parent1f466a47e8a3a3e3b527b3285c7b9c8a837fb7ec (diff)
[GFS2] fs/gfs2/recovery.c: suppress warnings
fs/gfs2/recovery.c: In function 'get_log_header': fs/gfs2/recovery.c:152: warning: 'lh.lh_sequence' may be used uninitialized in this function fs/gfs2/recovery.c:152: warning: 'lh.lh_flags' may be used uninitialized in this function fs/gfs2/recovery.c:152: warning: 'lh.lh_tail' may be used uninitialized in this function fs/gfs2/recovery.c:152: warning: 'lh.lh_blkno' may be used uninitialized in this function fs/gfs2/recovery.c:152: warning: 'lh.lh_hash' may be used uninitialized in this function Cc: David Teigland <teigland@redhat.com> Cc: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/recovery.c')
-rw-r--r--fs/gfs2/recovery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/recovery.c b/fs/gfs2/recovery.c
index b17d3b8b2321..06dcdc04627d 100644
--- a/fs/gfs2/recovery.c
+++ b/fs/gfs2/recovery.c
@@ -149,7 +149,7 @@ static int get_log_header(struct gfs2_jdesc *jd, unsigned int blk,
149 struct gfs2_log_header_host *head) 149 struct gfs2_log_header_host *head)
150{ 150{
151 struct buffer_head *bh; 151 struct buffer_head *bh;
152 struct gfs2_log_header_host lh; 152 struct gfs2_log_header_host uninitialized_var(lh);
153 const u32 nothing = 0; 153 const u32 nothing = 0;
154 u32 hash; 154 u32 hash;
155 int error; 155 int error;