1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-09 12:58:41 +03:00

cleanup: hide gcc warning

Older gcc is giving misleading warning:

metadata/lv_manip.c:4018: warning: ‘seg’ may be used uninitialized in
this function

But warning free compilation is better.
This commit is contained in:
Zdenek Kabelac 2013-09-09 13:06:05 +02:00
parent 82228acfc9
commit b8ea27ac97

View File

@ -4016,7 +4016,7 @@ static struct logical_volume *_lvresize_volume(struct cmd_context *cmd,
{
struct volume_group *vg = lv->vg;
struct logical_volume *lock_lv = NULL;
struct lv_segment *seg;
struct lv_segment *seg = NULL;
int status;
alloc_policy_t alloc;