From ae491d1e2c1c61be8bb341bd024e467e419a464c Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Thu, 22 Feb 2007 14:59:16 +1100 Subject: [PATCH] Fix a warning about an uninitialised variable. The case that doesn't initialise it is impossible, so just return with an error.. --- ChangeLog | 1 + super1.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index 2f6a6e5..3e10eb4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ Changes Prior to this release - --monitor was producing some meaningless warnings due to a bug. + - Fix some compiler warnings. Changes Prior to 2.6 release - Fixed UUID printing in "--detail --brief" for version1 metadata. diff --git a/super1.c b/super1.c index a480f21..42efc75 100644 --- a/super1.c +++ b/super1.c @@ -1203,6 +1203,8 @@ add_internal_bitmap1(struct supertype *st, void *sbv, } } break; + default: + return 0; } if (chunk == UnSet && room > 128*2)