disk-utils/sfdisk.c:222:9: warning: variable 'rc' is uninitialized when used here [-Wuninitialized] return rc; disk-utils/sfdisk.c:208:8: note: initialize the variable 'rc' to silence this warning int rc; Signed-off-by: Sami Kerola <kerolasa@xxxxxx> --- disk-utils/sfdisk.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/disk-utils/sfdisk.c b/disk-utils/sfdisk.c index b0332f2..f48d1c7 100644 --- a/disk-utils/sfdisk.c +++ b/disk-utils/sfdisk.c @@ -205,7 +205,6 @@ static void sfdisk_init(struct sfdisk *sf) static int sfdisk_deinit(struct sfdisk *sf) { struct fdisk_context *parent; - int rc; assert(sf); assert(sf->cxt); @@ -219,7 +218,7 @@ static int sfdisk_deinit(struct sfdisk *sf) fdisk_unref_context(sf->cxt); memset(sf, 0, sizeof(*sf)); - return rc; + return 0; } static void backup_sectors(struct sfdisk *sf, -- 2.1.2 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html