stable-2.02 - gcc: clean uninitialized var warning
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=b0e1019add988b91fb41355566a34a3b2e182569 Commit: b0e1019add988b91fb41355566a34a3b2e182569 Parent: 9aedf68c32f5ba7217b37e466546b5abb4f33f76 Author: Zdenek Kabelac <[email protected]> AuthorDate: Tue Jun 25 22:49:24 2019 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Sat Jul 6 01:24:28 2019 +0200
gcc: clean uninitialized var warning
Some older gcc versions shows this (FP) warning:label/label.c:360: warning: ?????sector???????? may be used uninitialized in this function
--- lib/label/label.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
lib/label/label.c +1 -1
@@ -357,7 +357,7 @@ static int _process_block(struct cmd_context *cmd, struct dev_filter *f, char label_buf[LABEL_SIZE] __attribute__((aligned(8)));struct label *label =NULL ;struct labeller *labeller; -uint64_t sector; +uint64_t sector =0 ;int ret =0 ;int pass;