aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPeter Foley <pefoley2@verizon.net>2011-10-22 14:01:24 -0400
committerMichal Marek <mmarek@suse.cz>2011-12-11 15:29:45 -0500
commit4f0c28f77932c51ba7639a6174047ec8c6560116 (patch)
tree09491de604d435504ed98d2bb0db304b65a8261f /scripts
parenta7d6f6e407d617da7a3cda8865e593523eb6ee80 (diff)
kconfig: fix set but not used warnings
Remove set but not used variables to fix warnings. HOSTCC scripts/kconfig/gconf.o /usr/src/lto/scripts/kconfig/gconf.c: In function 'change_sym_value': /usr/src/lto/scripts/kconfig/gconf.c:833:11: warning: variable 'oldval' set but not used [-Wunused-but-set-variable] /usr/src/lto/scripts/kconfig/gconf.c: In function 'update_tree': /usr/src/lto/scripts/kconfig/gconf.c:1281:19: warning: variable 'prop' set but not used [-Wunused-but-set-variable] Signed-off-by: Peter Foley <pefoley2@verizon.net> Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/gconf.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/kconfig/gconf.c b/scripts/kconfig/gconf.c
index b9e26a56c45d..adc230638c5b 100644
--- a/scripts/kconfig/gconf.c
+++ b/scripts/kconfig/gconf.c
@@ -830,7 +830,7 @@ static void renderer_edited(GtkCellRendererText * cell,
830static void change_sym_value(struct menu *menu, gint col) 830static void change_sym_value(struct menu *menu, gint col)
831{ 831{
832 struct symbol *sym = menu->sym; 832 struct symbol *sym = menu->sym;
833 tristate oldval, newval; 833 tristate newval;
834 834
835 if (!sym) 835 if (!sym)
836 return; 836 return;
@@ -847,7 +847,6 @@ static void change_sym_value(struct menu *menu, gint col)
847 switch (sym_get_type(sym)) { 847 switch (sym_get_type(sym)) {
848 case S_BOOLEAN: 848 case S_BOOLEAN:
849 case S_TRISTATE: 849 case S_TRISTATE:
850 oldval = sym_get_tristate_value(sym);
851 if (!sym_tristate_within_range(sym, newval)) 850 if (!sym_tristate_within_range(sym, newval))
852 newval = yes; 851 newval = yes;
853 sym_set_tristate_value(sym, newval); 852 sym_set_tristate_value(sym, newval);
@@ -1278,7 +1277,6 @@ static void update_tree(struct menu *src, GtkTreeIter * dst)
1278 gboolean valid; 1277 gboolean valid;
1279 GtkTreeIter *sibling; 1278 GtkTreeIter *sibling;
1280 struct symbol *sym; 1279 struct symbol *sym;
1281 struct property *prop;
1282 struct menu *menu1, *menu2; 1280 struct menu *menu1, *menu2;
1283 1281
1284 if (src == &rootmenu) 1282 if (src == &rootmenu)
@@ -1287,7 +1285,6 @@ static void update_tree(struct menu *src, GtkTreeIter * dst)
1287 valid = gtk_tree_model_iter_children(model2, child2, dst); 1285 valid = gtk_tree_model_iter_children(model2, child2, dst);
1288 for (child1 = src->list; child1; child1 = child1->next) { 1286 for (child1 = src->list; child1; child1 = child1->next) {
1289 1287
1290 prop = child1->prompt;
1291 sym = child1->sym; 1288 sym = child1->sym;
1292 1289
1293 reparse: 1290 reparse: