All of lore.kernel.org
 help / color / mirror / Atom feed
* master - cleanup: gcc warns removal
@ 2016-07-12 11:23 Zdenek Kabelac
  0 siblings, 0 replies; only message in thread
From: Zdenek Kabelac @ 2016-07-12 11:23 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=fd53d86eeada2b03fff2ca0ebb8ad25280b90cdd
Commit:        fd53d86eeada2b03fff2ca0ebb8ad25280b90cdd
Parent:        42e76a1920c9ee1ae13a3ca4ba2fdd96cad8fe3f
Author:        Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate:    Mon Jul 11 22:58:21 2016 +0200
Committer:     Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Tue Jul 12 10:39:33 2016 +0200

cleanup: gcc warns removal

Ensure vars have always defined value.
---
 lib/cache/lvmetad.c       |    2 +-
 lib/metadata/raid_manip.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/cache/lvmetad.c b/lib/cache/lvmetad.c
index 1fecb5e..c320b1c 100644
--- a/lib/cache/lvmetad.c
+++ b/lib/cache/lvmetad.c
@@ -1784,7 +1784,7 @@ static struct volume_group *lvmetad_pvscan_vg(struct cmd_context *cmd, struct vo
 	struct dm_list pvs_scan;
 	struct dm_list pvs_drop;
 	struct dm_list pvs_new;
-	struct lvmcache_info *info;
+	struct lvmcache_info *info = NULL;
 	struct format_instance *fid;
 	struct format_instance_ctx fic = { .type = 0 };
 	struct _lvmetad_pvscan_baton baton;
diff --git a/lib/metadata/raid_manip.c b/lib/metadata/raid_manip.c
index b67380f..9ac061f 100644
--- a/lib/metadata/raid_manip.c
+++ b/lib/metadata/raid_manip.c
@@ -1726,7 +1726,7 @@ static int _raid0_to_striped_retrieve_segments_and_lvs(struct logical_volume *lv
 						       struct dm_list *removal_lvs)
 {
 	uint32_t s, area_le, area_len, le;
-	struct lv_segment *data_seg, *seg, *seg_to;
+	struct lv_segment *data_seg = NULL, *seg, *seg_to;
 	struct dm_list new_segments;
 
 	seg = first_seg(lv);



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-07-12 11:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-12 11:23 master - cleanup: gcc warns removal Zdenek Kabelac

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.