From 2e2cbfe4acc22c1c69e38b638280da974630ca7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Wallm=C3=A9nius?= Date: Thu, 22 Nov 2007 19:56:57 +0000 Subject: [PATCH] #ifdef out unused function to fix warning for non rtc and non bitmap targets git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15757 a1c6a512-1295-4272-9138-f99709370657 --- apps/screens.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/screens.c b/apps/screens.c index b84b3642e5..6654be4961 100644 --- a/apps/screens.c +++ b/apps/screens.c @@ -80,6 +80,8 @@ #define SCROLLBAR_WIDTH 6 #endif +/* only used in set_time screen */ +#if defined(HAVE_LCD_BITMAP) && (CONFIG_RTC != 0) static int clamp_value_wrap(int value, int max, int min) { if (value > max) @@ -88,6 +90,7 @@ static int clamp_value_wrap(int value, int max, int min) return max; return value; } +#endif void usb_screen(void) {