main - gcc: hide uninitialized warning with older gcc
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=026d94d882635f859814280573d1198203652d29 Commit: 026d94d882635f859814280573d1198203652d29 Parent: 48030389ceb43a6ae90568e5cf7475bc7715ca47 Author: Zdenek Kabelac <[email protected]> AuthorDate: Mon Feb 1 14:54:49 2021 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Mon Feb 1 14:54:49 2021 +0100
gcc: hide uninitialized warning with older gcc
--- lib/raid/raid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/raid/raid.c +1 -1
@@ -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. */