1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

gcc: cleanup warns from older gcc

This commit is contained in:
Zdenek Kabelac 2020-10-25 21:56:02 +01:00
parent e793f34eb7
commit 7bafae48bb
2 changed files with 3 additions and 3 deletions

View File

@ -407,9 +407,9 @@ int lvdisplay_full(struct cmd_context *cmd,
int lvm1compat; int lvm1compat;
dm_percent_t snap_percent; dm_percent_t snap_percent;
int thin_pool_active = 0; 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; 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 *thin_status = NULL;
struct lv_status_thin_pool *thin_pool_status = NULL; struct lv_status_thin_pool *thin_pool_status = NULL;
struct lv_status_cache *cache_status = NULL; struct lv_status_cache *cache_status = NULL;

View File

@ -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 *lv, *origin_lv = NULL;
struct logical_volume *pool_lv = NULL; struct logical_volume *pool_lv = NULL;
struct logical_volume *tmp_lv; 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 thin_pool_was_active = -1; /* not scanned, inactive, active */
int historical; int historical;
uint64_t transaction_id; uint64_t transaction_id;