master - cleanup: hide gcc warning
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=b8ea27ac97ef94837f6ee3fce86fd65dcb294d65 Commit: b8ea27ac97ef94837f6ee3fce86fd65dcb294d65 Parent: 82228acfc95fa4dbe9acca2d3bfc5a89087fd5e4 Author: Zdenek Kabelac <[email protected]> AuthorDate: Mon Sep 9 13:06:05 2013 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Wed Sep 11 23:40:45 2013 +0200
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.
--- lib/metadata/lv_manip.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
lib/metadata/lv_manip.c +1 -1
@@ -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;