From 2e3162f039fdb4d48aa5c9a1bf6c11ac9439a514 Mon Sep 17 00:00:00 2001 From: Nils Wallménius Date: Tue, 24 May 2011 10:56:01 +0000 Subject: Fix 2 'set but not used' warnings. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29922 a1c6a512-1295-4272-9138-f99709370657 --- apps/radio/radio.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'apps/radio') diff --git a/apps/radio/radio.c b/apps/radio/radio.c index d1a94ac295..5c0b884cd1 100644 --- a/apps/radio/radio.c +++ b/apps/radio/radio.c @@ -392,8 +392,8 @@ void radio_screen(void) #endif #if CONFIG_CODEC != SWCODEC int timeout = current_tick + HZ/10; - unsigned int last_seconds = 0; #if !defined(SIMULATOR) + unsigned int last_seconds = 0; unsigned int seconds = 0; struct audio_recording_options rec_options; #endif /* SIMULATOR */ @@ -547,8 +547,10 @@ void radio_screen(void) rec_command(RECORDING_CMD_START); update_type = SKIN_REFRESH_ALL; } -#endif /* SIMULATOR */ +#if CONFIG_CODEC != SWCODEC last_seconds = 0; +#endif +#endif /* SIMULATOR */ break; #endif /* #ifdef FM_RECORD */ -- cgit v1.2.3