public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Avoid Wunused-but-set warning
@ 2011-07-09 16:24 Raghavendra D Prabhu
  2011-07-10 16:16 ` Américo Wang
  0 siblings, 1 reply; 27+ messages in thread
From: Raghavendra D Prabhu @ 2011-07-09 16:24 UTC (permalink / raw)
  To: linux-kbuild; +Cc: Nir Tzachar, linux-kernel

Hi,
     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: Raghavendra D Prabhu <rprabhu@wnohang.net>
---
  scripts/kconfig/nconf.c |    2 --
  1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/scripts/kconfig/nconf.c b/scripts/kconfig/nconf.c
index 488dd74..5dad8ae 100644
--- a/scripts/kconfig/nconf.c
+++ b/scripts/kconfig/nconf.c
@@ -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)
-- 
1.7.6

--------------------------
Raghavendra Prabhu
GPG Id : 0xD72BE977
Fingerprint: B93F EBCB 8E05 7039 CD3C A4B8 A616 DCA1 D72B E977
www: wnohang.net

^ permalink raw reply related	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2011-07-18 19:00 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-09 16:24 [PATCH] Avoid Wunused-but-set warning Raghavendra D Prabhu
2011-07-10 16:16 ` Américo Wang
2011-07-10 16:24   ` Arnaud Lacombe
2011-07-10 16:28     ` Pekka Enberg
2011-07-10 16:49       ` Arnaud Lacombe
2011-07-10 16:51         ` Américo Wang
2011-07-10 17:22           ` Arnaud Lacombe
2011-07-10 17:24         ` Pekka Enberg
2011-07-10 18:02         ` Randy Dunlap
2011-07-10 22:56           ` Jesper Juhl
2011-07-10 23:07             ` Randy Dunlap
2011-07-10 23:21               ` Jesper Juhl
2011-07-10 23:53                 ` Randy Dunlap
2011-07-11  5:09                   ` Mark Brown
2011-07-11 17:11                     ` Randy Dunlap
2011-07-11 22:42                       ` Mark Brown
2011-07-13  1:15                       ` Américo Wang
2011-07-13  2:21                         ` Arnaud Lacombe
2011-07-13 12:16                           ` Pekka Enberg
2011-07-11 20:32                   ` Jesper Juhl
2011-07-11  5:55                 ` Pekka Enberg
2011-07-11 20:37                   ` Jesper Juhl
2011-07-13  0:35                   ` Valdis.Kletnieks
2011-07-13  0:55                     ` Randy Dunlap
2011-07-10 16:49     ` Américo Wang
2011-07-13 11:39   ` Michal Marek
2011-07-18 19:00   ` Arnaud Lacombe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox