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

gcc: eliminate warnings

Gcc starts to show new warning - although unlikely to be able to hit
initialize variables to 0.
This commit is contained in:
Zdenek Kabelac 2022-09-05 16:22:32 +02:00
parent 973d0bd5b7
commit e757965222
2 changed files with 2 additions and 2 deletions

View File

@ -1830,7 +1830,7 @@ static int _out_line_fn(const struct dm_config_node *cn, const char *line, void
char summary[MAX_COMMENT_LINE+1];
char version[9];
int pos = 0;
int space_prefix_len;
int space_prefix_len = 0;
const char *p;
size_t len;

View File

@ -252,7 +252,7 @@ static int _update_extents_params(struct volume_group *vg,
uint32_t size_rest;
uint32_t stripesize_extents;
uint32_t extents;
uint32_t base_calc_extents;
uint32_t base_calc_extents = 0;
uint32_t vdo_pool_max_extents;
if (lcp->size &&