mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
cleanup: gcc warns removal
Ensure vars have always defined value.
This commit is contained in:
parent
42e76a1920
commit
fd53d86eea
2
lib/cache/lvmetad.c
vendored
2
lib/cache/lvmetad.c
vendored
@ -1784,7 +1784,7 @@ static struct volume_group *lvmetad_pvscan_vg(struct cmd_context *cmd, struct vo
|
|||||||
struct dm_list pvs_scan;
|
struct dm_list pvs_scan;
|
||||||
struct dm_list pvs_drop;
|
struct dm_list pvs_drop;
|
||||||
struct dm_list pvs_new;
|
struct dm_list pvs_new;
|
||||||
struct lvmcache_info *info;
|
struct lvmcache_info *info = NULL;
|
||||||
struct format_instance *fid;
|
struct format_instance *fid;
|
||||||
struct format_instance_ctx fic = { .type = 0 };
|
struct format_instance_ctx fic = { .type = 0 };
|
||||||
struct _lvmetad_pvscan_baton baton;
|
struct _lvmetad_pvscan_baton baton;
|
||||||
|
@ -1726,7 +1726,7 @@ static int _raid0_to_striped_retrieve_segments_and_lvs(struct logical_volume *lv
|
|||||||
struct dm_list *removal_lvs)
|
struct dm_list *removal_lvs)
|
||||||
{
|
{
|
||||||
uint32_t s, area_le, area_len, le;
|
uint32_t s, area_le, area_len, le;
|
||||||
struct lv_segment *data_seg, *seg, *seg_to;
|
struct lv_segment *data_seg = NULL, *seg, *seg_to;
|
||||||
struct dm_list new_segments;
|
struct dm_list new_segments;
|
||||||
|
|
||||||
seg = first_seg(lv);
|
seg = first_seg(lv);
|
||||||
|
Loading…
Reference in New Issue
Block a user