]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: fix compiler warning [-Werror=unused-variable]
authorPetr Uzel <petr.uzel@suse.cz>
Tue, 24 Jul 2012 11:52:31 +0000 (13:52 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 24 Jul 2012 12:09:52 +0000 (14:09 +0200)
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
fdisks/fdisk.c

index 4731918b8ab4551c4bbc98c59d5dad7d41805d91..244f0e7c48afc0a27b55620ceeeee90c24b0c993 100644 (file)
@@ -1604,7 +1604,6 @@ gpt_warning(char *dev)
 /* Print disk geometry and partition table of a specified device (-l option) */
 static void print_partition_table_from_option(char *device, unsigned long sector_size)
 {
-       int gb;
        struct fdisk_context *cxt;
 
        cxt = fdisk_new_context_from_filename(device, 1);       /* read-only */