diff options
author | Nils Wallménius <nils@rockbox.org> | 2011-05-24 10:56:01 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2011-05-24 10:56:01 +0000 |
commit | 2e3162f039fdb4d48aa5c9a1bf6c11ac9439a514 (patch) | |
tree | 07f365817f9c0fa220b84d0802bb971f40700831 /apps/bookmark.c | |
parent | 5fd9471c156ca054fbe5fc5d2b002f94645f473c (diff) | |
download | rockbox-2e3162f039fdb4d48aa5c9a1bf6c11ac9439a514.tar.gz rockbox-2e3162f039fdb4d48aa5c9a1bf6c11ac9439a514.zip |
Fix 2 'set but not used' warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29922 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/bookmark.c')
-rw-r--r-- | apps/bookmark.c | 7 |
1 files changed, 3 insertions, 4 deletions
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) | |||
857 | static void say_bookmark(const char* bookmark, | 857 | static void say_bookmark(const char* bookmark, |
858 | int bookmark_id, bool show_playlist_name) | 858 | int bookmark_id, bool show_playlist_name) |
859 | { | 859 | { |
860 | bool is_dir; | ||
861 | |||
862 | if (!parse_bookmark(bookmark, true)) | 860 | if (!parse_bookmark(bookmark, true)) |
863 | { | 861 | { |
864 | talk_id(LANG_BOOKMARK_INVALID, false); | 862 | talk_id(LANG_BOOKMARK_INVALID, false); |
@@ -867,9 +865,10 @@ static void say_bookmark(const char* bookmark, | |||
867 | 865 | ||
868 | talk_number(bookmark_id + 1, false); | 866 | talk_number(bookmark_id + 1, false); |
869 | 867 | ||
870 | is_dir = (global_temp_buffer[0] | ||
871 | && global_temp_buffer[strlen(global_temp_buffer)-1] == '/'); | ||
872 | #if CONFIG_CODEC == SWCODEC | 868 | #if CONFIG_CODEC == SWCODEC |
869 | bool is_dir = (global_temp_buffer[0] | ||
870 | && global_temp_buffer[strlen(global_temp_buffer)-1] == '/'); | ||
871 | |||
873 | /* HWCODEC cannot enqueue voice file entries and .talk thumbnails | 872 | /* HWCODEC cannot enqueue voice file entries and .talk thumbnails |
874 | together, because there is no guarantee that the same mp3 | 873 | together, because there is no guarantee that the same mp3 |
875 | parameters are used. */ | 874 | parameters are used. */ |