From f7c45941344ecfbcdd5d9b311b61573d37c6ef58 Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Sun, 1 May 2011 13:48:28 +0000 Subject: Fix further 'variable set but not used' warnings reported from GCC 4.6.0. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29809 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/option_select.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'apps/gui/option_select.c') diff --git a/apps/gui/option_select.c b/apps/gui/option_select.c index 5d1e3d778e..f954268c18 100644 --- a/apps/gui/option_select.c +++ b/apps/gui/option_select.c @@ -315,7 +315,10 @@ void option_select_next_val(const struct settings_list *setting, static int selection_to_val(const struct settings_list *setting, int selection) { - int min = 0, max = 0, step = 1; + /* rockbox: comment 'set but unused' variables + int min = 0; + */ + int max = 0, step = 1; if (((setting->flags & F_BOOL_SETTING) == F_BOOL_SETTING) || ((setting->flags & F_CHOICE_SETTING) == F_CHOICE_SETTING)) return selection; @@ -339,10 +342,10 @@ static int selection_to_val(const struct settings_list *setting, int selection) #ifndef ASCENDING_INT_SETTINGS step = sound_steps(setting_id); max = sound_max(setting_id); - min = sound_min(setting_id); + /* min = sound_min(setting_id); */ #else step = -sound_steps(setting_id); - min = sound_max(setting_id); + /* min = sound_max(setting_id); */ max = sound_min(setting_id); #endif } @@ -350,12 +353,12 @@ static int selection_to_val(const struct settings_list *setting, int selection) { const struct int_setting *info = setting->int_setting; #ifndef ASCENDING_INT_SETTINGS - min = info->min; + /* min = info->min; */ max = info->max; step = info->step; #else max = info->min; - min = info->max; + /* min = info->max; */ step = -info->step; #endif } -- cgit v1.2.3