[syslinux:master] hdt: remove set-but-unused variable

syslinux-bot for H. Peter Anvin hpa at zytor.com
Mon Apr 25 17:03:03 PDT 2011


Commit-ID:  842d7e35ccd8cd89105faf0266497e838d96c8b3
Gitweb:     http://syslinux.zytor.com/commit/842d7e35ccd8cd89105faf0266497e838d96c8b3
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Mon, 25 Apr 2011 17:00:22 -0700
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Mon, 25 Apr 2011 17:00:22 -0700

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 at zytor.com>


---
 com32/hdt/hdt-dump-disks.c |    3 ---
 1 files changed, 0 insertions(+), 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);
 



More information about the Syslinux-commits mailing list