summaryrefslogtreecommitdiff
path: root/apps/plugins/star.c
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-05-01 14:44:20 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-05-01 14:44:20 +0000
commit27d153db930a231718a18ec5a886c8789077c83a (patch)
tree9d29fd6c1348f3ca1742774cb242177b3d0ca82b /apps/plugins/star.c
parentf7c45941344ecfbcdd5d9b311b61573d37c6ef58 (diff)
downloadrockbox-27d153db930a231718a18ec5a886c8789077c83a.tar.gz
rockbox-27d153db930a231718a18ec5a886c8789077c83a.zip
Fix nearly all residual 'variable set but not used' warnings reported from GCC 4.6.0.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29810 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/star.c')
-rw-r--r--apps/plugins/star.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/plugins/star.c b/apps/plugins/star.c
index 3506f4b09e..c9797fd85b 100644
--- a/apps/plugins/star.c
+++ b/apps/plugins/star.c
@@ -945,7 +945,11 @@ static int star_run_game(int current_level)
945 int move_x = 0; 945 int move_x = 0;
946 int move_y = 0; 946 int move_y = 0;
947 int key; 947 int key;
948#if defined(STAR_LEVEL_DOWN_PRE) || \
949 defined(STAR_LEVEL_UP_PRE) || \
950 defined(STAR_TOGGLE_CONTROL_PRE)
948 int lastkey = BUTTON_NONE; 951 int lastkey = BUTTON_NONE;
952#endif
949 953
950 if (!star_load_level(current_level)) 954 if (!star_load_level(current_level))
951 return 0; 955 return 0;
@@ -1033,8 +1037,12 @@ static int star_run_game(int current_level)
1033 } 1037 }
1034 break; 1038 break;
1035 } 1039 }
1040#if defined(STAR_LEVEL_DOWN_PRE) || \
1041 defined(STAR_LEVEL_UP_PRE) || \
1042 defined(STAR_TOGGLE_CONTROL_PRE)
1036 if (key != BUTTON_NONE) 1043 if (key != BUTTON_NONE)
1037 lastkey = key; 1044 lastkey = key;
1045#endif
1038 } 1046 }
1039 1047
1040 if (control == STAR_CONTROL_BALL) 1048 if (control == STAR_CONTROL_BALL)