From 026d94d882635f859814280573d1198203652d29 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 1 Feb 2021 14:54:49 +0100 Subject: [PATCH] gcc: hide uninitialized warning with older gcc --- lib/raid/raid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/raid/raid.c b/lib/raid/raid.c index 126b22d43..6344200f5 100644 --- a/lib/raid/raid.c +++ b/lib/raid/raid.c @@ -472,7 +472,7 @@ static int _check_feature(const struct raid_feature *feature, uint32_t maj, uint /* Check availability of raid10 taking data copies into consideration. */ static bool _raid10_is_available(const struct logical_volume *lv) { - uint32_t i, rebuilds_per_group, s; + uint32_t i, rebuilds_per_group = 0, s; const uint32_t copies = 2; /* FIXME: we only support 2-way mirrors (i.e. 2 data copies) in RAID10 for now. */ struct lv_segment *seg = first_seg(lv); /* We only have one segment in RaidLVs for now. */ -- 2.43.5