From: Thomas Weißschuh Date: Mon, 12 Dec 2022 21:07:31 +0000 (+0000) Subject: libfdisk: remove unused variable ct X-Git-Tag: v2.39-rc1~372^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b047d79f162fb5eb9ba9d66ebf558d88c0267f55;p=thirdparty%2Futil-linux.git libfdisk: remove unused variable ct --- diff --git a/libfdisk/src/script.c b/libfdisk/src/script.c index 32e2fe9bc5..f537a7d99e 100644 --- a/libfdisk/src/script.c +++ b/libfdisk/src/script.c @@ -554,7 +554,6 @@ static int write_file_json(struct fdisk_script *dp, FILE *f) struct fdisk_partition *pa; struct fdisk_iter itr; const char *devname = NULL; - int ct = 0; struct ul_jsonwrt json; assert(dp); @@ -608,7 +607,6 @@ static int write_file_json(struct fdisk_script *dp, FILE *f) while (fdisk_table_next_partition(dp->table, &itr, &pa) == 0) { char *p = NULL; - ct++; ul_jsonwrt_object_open(&json, NULL); if (devname) p = fdisk_partname(devname, pa->partno + 1);