aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-04-25 17:00:22 -0700
committerH. Peter Anvin <hpa@zytor.com>2011-04-25 17:00:22 -0700
commit842d7e35ccd8cd89105faf0266497e838d96c8b3 (patch)
tree069f56f62883abaa92b1c919556202588fbc9f82 /com32/hdt
parent5c2034ff8e5abd4f676be9936dff62628a593760 (diff)
downloadsyslinux-842d7e35ccd8cd89105faf0266497e838d96c8b3.tar.gz
syslinux-842d7e35ccd8cd89105faf0266497e838d96c8b3.tar.xz
syslinux-842d7e35ccd8cd89105faf0266497e838d96c8b3.zip
hdt: remove set-but-unused variable
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>
Diffstat (limited to 'com32/hdt')
-rw-r--r--com32/hdt/hdt-dump-disks.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/com32/hdt/hdt-dump-disks.c b/com32/hdt/hdt-dump-disks.c
index ed2aea36..dcbcaa9e 100644
--- a/com32/hdt/hdt-dump-disks.c
+++ b/com32/hdt/hdt-dump-disks.c
@@ -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);