Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9882ac0 authored by Raghavendra D Prabhu's avatar Raghavendra D Prabhu Committed by Michal Marek
Browse files

nconfig: Avoid Wunused-but-set warning



I am seeing Wunused-but-set warning while make nconfig.  Looks like
active_menu is not used. Removing it fixes the warning.

Signed-off-by: default avatarRaghavendra D Prabhu <rprabhu@wnohang.net>
Acked-by: default avatarWANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
parent 5c74cd4c
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1067,7 +1067,6 @@ static void conf(struct menu *menu)
	struct menu *submenu = 0;
	const char *prompt = menu_get_prompt(menu);
	struct symbol *sym;
	struct menu *active_menu = NULL;
	int res;
	int current_index = 0;
	int last_top_row = 0;
@@ -1152,7 +1151,6 @@ static void conf(struct menu *menu)
			continue;

		submenu = (struct menu *) item_data();
		active_menu = (struct menu *)item_data();
		if (!submenu || !menu_is_visible(submenu))
			continue;
		if (submenu)