summaryrefslogtreecommitdiffstats
path: root/apps/gui/option_select.c
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-05-01 13:48:28 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-05-01 13:48:28 +0000
commitf7c45941344ecfbcdd5d9b311b61573d37c6ef58 (patch)
tree4c2fa595d7209694dd30b0e0b349a0a44116d712 /apps/gui/option_select.c
parent08fb3f65745a237e2c1eae55d856ff27702246e5 (diff)
downloadrockbox-f7c45941344ecfbcdd5d9b311b61573d37c6ef58.tar.gz
rockbox-f7c45941344ecfbcdd5d9b311b61573d37c6ef58.zip
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
Diffstat (limited to 'apps/gui/option_select.c')
-rw-r--r--apps/gui/option_select.c13
1 files changed, 8 insertions, 5 deletions
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
}