1
0
Fork 0
forked from len0rd/rockbox

Fix 2 'set but not used' warnings.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29922 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Nils Wallménius 2011-05-24 10:56:01 +00:00
parent 5fd9471c15
commit 2e3162f039
2 changed files with 7 additions and 6 deletions

View file

@ -857,8 +857,6 @@ static bool delete_bookmark(const char* bookmark_file_name, int bookmark_id)
static void say_bookmark(const char* bookmark, static void say_bookmark(const char* bookmark,
int bookmark_id, bool show_playlist_name) int bookmark_id, bool show_playlist_name)
{ {
bool is_dir;
if (!parse_bookmark(bookmark, true)) if (!parse_bookmark(bookmark, true))
{ {
talk_id(LANG_BOOKMARK_INVALID, false); talk_id(LANG_BOOKMARK_INVALID, false);
@ -867,9 +865,10 @@ static void say_bookmark(const char* bookmark,
talk_number(bookmark_id + 1, false); talk_number(bookmark_id + 1, false);
is_dir = (global_temp_buffer[0]
&& global_temp_buffer[strlen(global_temp_buffer)-1] == '/');
#if CONFIG_CODEC == SWCODEC #if CONFIG_CODEC == SWCODEC
bool is_dir = (global_temp_buffer[0]
&& global_temp_buffer[strlen(global_temp_buffer)-1] == '/');
/* HWCODEC cannot enqueue voice file entries and .talk thumbnails /* HWCODEC cannot enqueue voice file entries and .talk thumbnails
together, because there is no guarantee that the same mp3 together, because there is no guarantee that the same mp3
parameters are used. */ parameters are used. */

View file

@ -392,8 +392,8 @@ void radio_screen(void)
#endif #endif
#if CONFIG_CODEC != SWCODEC #if CONFIG_CODEC != SWCODEC
int timeout = current_tick + HZ/10; int timeout = current_tick + HZ/10;
unsigned int last_seconds = 0;
#if !defined(SIMULATOR) #if !defined(SIMULATOR)
unsigned int last_seconds = 0;
unsigned int seconds = 0; unsigned int seconds = 0;
struct audio_recording_options rec_options; struct audio_recording_options rec_options;
#endif /* SIMULATOR */ #endif /* SIMULATOR */
@ -547,8 +547,10 @@ void radio_screen(void)
rec_command(RECORDING_CMD_START); rec_command(RECORDING_CMD_START);
update_type = SKIN_REFRESH_ALL; update_type = SKIN_REFRESH_ALL;
} }
#endif /* SIMULATOR */ #if CONFIG_CODEC != SWCODEC
last_seconds = 0; last_seconds = 0;
#endif
#endif /* SIMULATOR */
break; break;
#endif /* #ifdef FM_RECORD */ #endif /* #ifdef FM_RECORD */