diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-12-15 11:47:18 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-12-15 11:47:18 +0000 |
commit | 8a935f6c4dfcc7f19e0ae647d3265c9cbd1788e7 (patch) | |
tree | 7a51b63549b5a94bd3dc645c534215d84878875c /apps | |
parent | 7df25eb23cf8867c65048f953e903e5beb50e3d8 (diff) | |
download | rockbox-8a935f6c4dfcc7f19e0ae647d3265c9cbd1788e7.tar.gz rockbox-8a935f6c4dfcc7f19e0ae647d3265c9cbd1788e7.zip |
Since some code isn't used if no ON button exist, we need to ifdef around
them to prevent compiler warning(s). We should make more code use a different
key instead of ON for the models that don't have one!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4154 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/playlist_viewer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c index 1784d02bba..ee34d3edb6 100644 --- a/apps/playlist_viewer.c +++ b/apps/playlist_viewer.c | |||
@@ -117,7 +117,9 @@ static void update_display_line(int line, bool scroll); | |||
117 | static void scroll_display(int lines); | 117 | static void scroll_display(int lines); |
118 | static void update_first_index(void); | 118 | static void update_first_index(void); |
119 | static bool update_playlist(bool force); | 119 | static bool update_playlist(bool force); |
120 | #ifdef BUTTON_ON | ||
120 | static int onplay_menu(int index); | 121 | static int onplay_menu(int index); |
122 | #endif | ||
121 | 123 | ||
122 | /* Initialize the playlist viewer */ | 124 | /* Initialize the playlist viewer */ |
123 | static bool initialize(void) | 125 | static bool initialize(void) |
@@ -563,6 +565,7 @@ static bool update_playlist(bool force) | |||
563 | return true; | 565 | return true; |
564 | } | 566 | } |
565 | 567 | ||
568 | #ifdef BUTTON_ON | ||
566 | /* Menu of playlist commands. Invoked via ON+PLAY on main viewer screen. | 569 | /* Menu of playlist commands. Invoked via ON+PLAY on main viewer screen. |
567 | Returns -1 if USB attached, 0 if no playlist change, and 1 if playlist | 570 | Returns -1 if USB attached, 0 if no playlist change, and 1 if playlist |
568 | changed. */ | 571 | changed. */ |
@@ -622,6 +625,7 @@ static int onplay_menu(int index) | |||
622 | 625 | ||
623 | return ret; | 626 | return ret; |
624 | } | 627 | } |
628 | #endif | ||
625 | 629 | ||
626 | /* Main viewer function */ | 630 | /* Main viewer function */ |
627 | bool playlist_viewer(void) | 631 | bool playlist_viewer(void) |