[syslinux:master] com32/hdt/hdt-menu-summary.c: remove variables set but not used
syslinux-bot for H. Peter Anvin
hpa at zytor.com
Wed Mar 16 13:18:42 PDT 2011
Commit-ID: 9fe14d6320687c3014b784d62cc8a85153f35c50
Gitweb: http://syslinux.zytor.com/commit/9fe14d6320687c3014b784d62cc8a85153f35c50
Author: H. Peter Anvin <hpa at zytor.com>
AuthorDate: Wed, 16 Mar 2011 13:10:36 -0700
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Wed, 16 Mar 2011 13:10:36 -0700
com32/hdt/hdt-menu-summary.c: remove variables set but not used
gcc 4.6 warns on variables set but not used, so remove them.
Signed-off-by: H. Peter Anvin <hpa at zytor.com>
---
com32/hdt/hdt-menu-summary.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/com32/hdt/hdt-menu-summary.c b/com32/hdt/hdt-menu-summary.c
index b939555..ad87c29 100644
--- a/com32/hdt/hdt-menu-summary.c
+++ b/com32/hdt/hdt-menu-summary.c
@@ -158,7 +158,6 @@ void compute_summarymenu(struct s_my_menu *menu, struct s_hardware *hardware)
if (hardware->modules_pcimap_return_code != -ENOMODULESPCIMAP) {
add_item("", "", OPT_SEP, "", 0);
- bool kmod = false;
struct pci_device *pci_device;
char kernel_modules[LINUX_KERNEL_MODULE_SIZE *
MAX_KERNEL_MODULES_PER_PCI_DEVICE];
@@ -191,7 +190,6 @@ void compute_summarymenu(struct s_my_menu *menu, struct s_hardware *hardware)
add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0);
menu->items_count++;
- kmod = true;
}
}
}
More information about the Syslinux-commits
mailing list