diff options
author | eadler <eadler@FreeBSD.org> | 2012-06-19 06:09:47 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2012-06-19 06:09:47 +0000 |
commit | a6ace6deb5e6eeca977403c0b06dad5a0f59c669 (patch) | |
tree | 5ea6a0dec2e28d97ea0a3373cbae30b507a55371 /usr.sbin/bsdinstall | |
parent | 3fdf1b6d2b267c1ab5b68cf3434fbe8c29cf5ddf (diff) | |
download | FreeBSD-src-a6ace6deb5e6eeca977403c0b06dad5a0f59c669.zip FreeBSD-src-a6ace6deb5e6eeca977403c0b06dad5a0f59c669.tar.gz |
Remove variables which are initialized but never used thereafter reported by gcc46 warning
Approved by: cperciva
MFC After: 3 days
Diffstat (limited to 'usr.sbin/bsdinstall')
-rw-r--r-- | usr.sbin/bsdinstall/partedit/diskeditor.c | 3 | ||||
-rw-r--r-- | usr.sbin/bsdinstall/partedit/part_wizard.c | 6 |
2 files changed, 1 insertions, 8 deletions
diff --git a/usr.sbin/bsdinstall/partedit/diskeditor.c b/usr.sbin/bsdinstall/partedit/diskeditor.c index 94c374b..7933caa 100644 --- a/usr.sbin/bsdinstall/partedit/diskeditor.c +++ b/usr.sbin/bsdinstall/partedit/diskeditor.c @@ -74,7 +74,7 @@ diskeditor_show(const char *title, const char *cprompt, int x, y; int i; int height, width, min_width; - int partlist_height, partlist_width, min_partlist_width; + int partlist_height, partlist_width; int cur_scroll = 0; int key, fkey; int cur_button = 0, cur_part = 0; @@ -102,7 +102,6 @@ diskeditor_show(const char *title, const char *cprompt, min_width = 50; height = width = 0; partlist_height = 10; - min_partlist_width = 0; dlg_tab_correct_str(prompt); dlg_button_layout(buttons, &min_width); dlg_auto_size(title, prompt, &height, &width, 2, min_width); diff --git a/usr.sbin/bsdinstall/partedit/part_wizard.c b/usr.sbin/bsdinstall/partedit/part_wizard.c index efd4a07..e840ac9 100644 --- a/usr.sbin/bsdinstall/partedit/part_wizard.c +++ b/usr.sbin/bsdinstall/partedit/part_wizard.c @@ -294,8 +294,6 @@ wizard_makeparts(struct gmesh *mesh, const char *disk) struct gmesh submesh; struct gclass *classp; struct ggeom *gp; - struct gconfig *gc; - const char *scheme; struct gprovider *pp; intmax_t swapsize, available; char swapsizestr[10], rootsizestr[10]; @@ -309,10 +307,6 @@ wizard_makeparts(struct gmesh *mesh, const char *disk) if (strcmp(gp->lg_name, disk) == 0) break; - LIST_FOREACH(gc, &gp->lg_config, lg_config) - if (strcmp(gc->lg_name, "scheme") == 0) - scheme = gc->lg_val; - pp = provider_for_name(mesh, disk); available = gpart_max_free(gp, NULL)*pp->lg_sectorsize; |