From a1345a12ddd3dd6f6763977271f3aea283fa7948 Mon Sep 17 00:00:00 2001
From: Alessandro Rubini <rubini@gnudd.com>
Date: Tue, 12 Jan 2016 09:07:31 +0100
Subject: [PATCH] scripts/kconfig: remove annoying warnings

Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
---
 scripts/kconfig/conf.c     | 4 ----
 scripts/kconfig/confdata.c | 3 ---
 2 files changed, 7 deletions(-)

diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c
index e4ed7627f..60e1e6127 100644
--- a/scripts/kconfig/conf.c
+++ b/scripts/kconfig/conf.c
@@ -156,14 +156,12 @@ static int conf_string(struct menu *menu)
 static int conf_sym(struct menu *menu)
 {
 	struct symbol *sym = menu->sym;
-	int type;
 	tristate oldval, newval;
 
 	while (1) {
 		printf("%*s%s ", indent - 1, "", _(menu->prompt->text));
 		if (sym->name)
 			printf("(%s) ", sym->name);
-		type = sym_get_type(sym);
 		putchar('[');
 		oldval = sym_get_tristate_value(sym);
 		switch (oldval) {
@@ -228,11 +226,9 @@ static int conf_choice(struct menu *menu)
 {
 	struct symbol *sym, *def_sym;
 	struct menu *child;
-	int type;
 	bool is_new;
 
 	sym = menu->sym;
-	type = sym_get_type(sym);
 	is_new = !sym_has_value(sym);
 	if (sym_is_changable(sym)) {
 		conf_sym(menu);
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c
index 69fd589eb..7c84c1043 100644
--- a/scripts/kconfig/confdata.c
+++ b/scripts/kconfig/confdata.c
@@ -406,7 +406,6 @@ int conf_write(const char *name)
 	int type, l;
 	const char *str;
 	time_t now;
-	int use_timestamp = 1;
 	char *env;
 
 	dirname[0] = 0;
@@ -447,8 +446,6 @@ int conf_write(const char *name)
 	sym_calc_value(sym);
 	time(&now);
 	env = getenv("KCONFIG_NOTIMESTAMP");
-	if (env && *env)
-		use_timestamp = 0;
 
 	fprintf(out, _("#\n"
 		       "# Automatically generated make config: don't edit\n"
-- 
GitLab