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/bookmark.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'apps/bookmark.c') diff --git a/apps/bookmark.c b/apps/bookmark.c index 28aecb4c23..434ac2aa95 100644 --- a/apps/bookmark.c +++ b/apps/bookmark.c @@ -857,8 +857,6 @@ static bool delete_bookmark(const char* bookmark_file_name, int bookmark_id) static void say_bookmark(const char* bookmark, int bookmark_id, bool show_playlist_name) { - bool is_dir; - if (!parse_bookmark(bookmark, true)) { talk_id(LANG_BOOKMARK_INVALID, false); @@ -867,9 +865,10 @@ static void say_bookmark(const char* bookmark, talk_number(bookmark_id + 1, false); - is_dir = (global_temp_buffer[0] - && global_temp_buffer[strlen(global_temp_buffer)-1] == '/'); #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 together, because there is no guarantee that the same mp3 parameters are used. */ -- cgit v1.2.3