diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2020-10-25 21:56:02 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2020-10-26 13:06:53 +0100 |
commit | 7bafae48bb7b7bf1e7adc420bf83d0c5acaf0aac (patch) | |
tree | fb9f8dca8ac37b22db51e67a5e273b505dac5bd7 | |
parent | e793f34eb73bd4be5a37ed641f9fe11ad1a6d578 (diff) | |
download | lvm2-7bafae48bb7b7bf1e7adc420bf83d0c5acaf0aac.tar.gz |
gcc: cleanup warns from older gcc
-rw-r--r-- | lib/display/display.c | 4 | ||||
-rw-r--r-- | lib/metadata/lv_manip.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/display/display.c b/lib/display/display.c index 6ef46f1e8..c0224edfb 100644 --- a/lib/display/display.c +++ b/lib/display/display.c @@ -407,9 +407,9 @@ int lvdisplay_full(struct cmd_context *cmd, int lvm1compat; dm_percent_t snap_percent; int thin_pool_active = 0; - dm_percent_t thin_data_percent, thin_metadata_percent; + dm_percent_t thin_data_percent = 0, thin_metadata_percent = 0; int thin_active = 0; - dm_percent_t thin_percent; + dm_percent_t thin_percent = 0; struct lv_status_thin *thin_status = NULL; struct lv_status_thin_pool *thin_pool_status = NULL; struct lv_status_cache *cache_status = NULL; diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c index e66342022..70464362e 100644 --- a/lib/metadata/lv_manip.c +++ b/lib/metadata/lv_manip.c @@ -8022,7 +8022,7 @@ static struct logical_volume *_lv_create_an_lv(struct volume_group *vg, struct logical_volume *lv, *origin_lv = NULL; struct logical_volume *pool_lv = NULL; struct logical_volume *tmp_lv; - struct lv_segment *seg, *pool_seg; + struct lv_segment *seg = NULL, *pool_seg; int thin_pool_was_active = -1; /* not scanned, inactive, active */ int historical; uint64_t transaction_id; |