From 842d7e35ccd8cd89105faf0266497e838d96c8b3 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Mon, 25 Apr 2011 17:00:22 -0700 Subject: [PATCH] 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 --- com32/hdt/hdt-dump-disks.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/com32/hdt/hdt-dump-disks.c b/com32/hdt/hdt-dump-disks.c index ed2aea3..dcbcaa9 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); -- 2.7.4