From f19d6a5e1d53feedf76a7edd7756386d9e52339b Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Tue, 3 May 2011 20:28:56 +0000 Subject: Fix even more 'variable set but not used' warnings reported from GCC 4.6.0. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29819 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/plasma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/plugins/plasma.c') diff --git a/apps/plugins/plasma.c b/apps/plugins/plasma.c index 4359e6e8b6..e824593850 100644 --- a/apps/plugins/plasma.c +++ b/apps/plugins/plasma.c @@ -155,8 +155,8 @@ int main(void) plasma_frequency = 1; int action, x, y; unsigned char p1,p2,p3,p4,t1,t2,t3,t4, z,z0; - long last_tick = *rb->current_tick; #ifdef HAVE_ADJUSTABLE_CPU_FREQ + long last_tick = *rb->current_tick; int delay; int cumulated_lag = 0; #endif @@ -257,10 +257,10 @@ int main(void) if (--cumulated_lag <= 0) /* slow decrease */ rb->cpu_boost(boosted = false); } + last_tick = *rb->current_tick; #endif action = pluginlib_getaction(0, plugin_contexts, ARRAYLEN(plugin_contexts)); - last_tick = *rb->current_tick; switch(action) { -- cgit v1.2.3