diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-05-01 13:48:28 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-05-01 13:48:28 +0000 |
commit | f7c45941344ecfbcdd5d9b311b61573d37c6ef58 (patch) | |
tree | 4c2fa595d7209694dd30b0e0b349a0a44116d712 /apps/plugins/plasma.c | |
parent | 08fb3f65745a237e2c1eae55d856ff27702246e5 (diff) | |
download | rockbox-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/plugins/plasma.c')
-rw-r--r-- | apps/plugins/plasma.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/plugins/plasma.c b/apps/plugins/plasma.c index 52f4204a17..4359e6e8b6 100644 --- a/apps/plugins/plasma.c +++ b/apps/plugins/plasma.c | |||
@@ -153,10 +153,11 @@ void cleanup(void) | |||
153 | int main(void) | 153 | int main(void) |
154 | { | 154 | { |
155 | plasma_frequency = 1; | 155 | plasma_frequency = 1; |
156 | int action, delay, x, y; | 156 | int action, x, y; |
157 | unsigned char p1,p2,p3,p4,t1,t2,t3,t4, z,z0; | 157 | unsigned char p1,p2,p3,p4,t1,t2,t3,t4, z,z0; |
158 | long last_tick = *rb->current_tick; | 158 | long last_tick = *rb->current_tick; |
159 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | 159 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ |
160 | int delay; | ||
160 | int cumulated_lag = 0; | 161 | int cumulated_lag = 0; |
161 | #endif | 162 | #endif |
162 | #ifdef HAVE_LCD_COLOR | 163 | #ifdef HAVE_LCD_COLOR |
@@ -243,8 +244,8 @@ int main(void) | |||
243 | grey_ub_gray_bitmap(greybuffer, 0, 0, LCD_WIDTH, LCD_HEIGHT); | 244 | grey_ub_gray_bitmap(greybuffer, 0, 0, LCD_WIDTH, LCD_HEIGHT); |
244 | #endif | 245 | #endif |
245 | 246 | ||
246 | delay = last_tick - *rb->current_tick + HZ/33; | ||
247 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | 247 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ |
248 | delay = last_tick - *rb->current_tick + HZ/33; | ||
248 | if (!boosted && delay < 0) | 249 | if (!boosted && delay < 0) |
249 | { | 250 | { |
250 | cumulated_lag -= delay; /* proportional increase */ | 251 | cumulated_lag -= delay; /* proportional increase */ |