mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
gcc: fix warning about uninitialized use
get_sizes_lockspace() may not always initilize all passed values in case the bitfield would not trigger if() path. So just in case keep the path initilized. TODO: maybe add INTERNAL_ERROR to get_sizes_lockspace().
This commit is contained in:
parent
0aa585a29f
commit
8ada61dbed
@ -782,11 +782,11 @@ int lm_init_lv_sanlock(struct lockspace *ls, char *ls_name, char *vg_name, char
|
||||
char lock_args_version[MAX_VERSION+1];
|
||||
uint64_t offset;
|
||||
uint64_t prev_offset = 0;
|
||||
int sector_size;
|
||||
int align_size;
|
||||
int sector_size = 0;
|
||||
int align_size = 0;
|
||||
int align_mb;
|
||||
uint32_t ss_flags;
|
||||
uint32_t rs_flags;
|
||||
uint32_t rs_flags = 0;
|
||||
uint32_t tries = 1;
|
||||
int rv;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user