Remove variables which are initialized but never used thereafter reported by gcc46 warning
Approved by: cperciva MFC After: 3 days
This commit is contained in:
parent
b9f88e6a06
commit
3f0d78d510
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=237253
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user