From 69519a97f2340fdc81911165f9a95d9f4c436243 Mon Sep 17 00:00:00 2001 From: Hristo Kovachev Date: Tue, 7 Feb 2006 16:41:29 +0000 Subject: Fixed a few warnings git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8608 a1c6a512-1295-4272-9138-f99709370657 --- apps/tree.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/tree.c') diff --git a/apps/tree.c b/apps/tree.c index d69217e5b2..ca7b83ef3f 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -639,7 +639,8 @@ static bool dirbrowse(void) /* Stop the music if it is playing */ if(audio_status()) audio_stop(); -#if (CONFIG_KEYPAD == RECORDER_PAD) && !defined(HAVE_SW_POWEROFF) +#if defined(HAVE_CHARGING) && \ + (CONFIG_KEYPAD == RECORDER_PAD) && !defined(HAVE_SW_POWEROFF) else { if (!charger_inserted()) { if(shutdown_screen()) -- cgit v1.2.3