hdt: remove set-but-unused variable
authorH. Peter Anvin <hpa@zytor.com>
Tue, 26 Apr 2011 00:00:22 +0000 (17:00 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 26 Apr 2011 00:00:22 +0000 (17:00 -0700)
Remove a set but unused variable in HDT, which prevents building with
gcc 4.6.  This is probably a bug; presumably the active flag should be
presented to the user, too.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/hdt/hdt-dump-disks.c

index ed2aea3..dcbcaa9 100644 (file)
@@ -42,7 +42,6 @@ static void show_partition_information(struct driveinfo *drive_info,
     char ostype[64]={0};
     char *parttype;
     unsigned int start, end;
-    bool bootable = false;
 
     int i = nb_partitions_seen;
     start = partition_offset;
@@ -53,8 +52,6 @@ static void show_partition_information(struct driveinfo *drive_info,
 
     get_label(ptab->ostype, &parttype);
     get_bootloader_string(drive_info, ptab, bootloader_name, 9);
-    if (ptab->active_flag == 0x80)
-           bootable=true;
 
     snprintf(ostype,sizeof(ostype),"%02X",ptab->ostype);