From 91a18d80ee1c16f1f13d33d66a176cfaba975d25 Mon Sep 17 00:00:00 2001 From: alle Date: Mon, 29 Jun 2009 14:58:02 +0000 Subject: [PATCH] Fix yellow introduced in r21561 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21563 a1c6a512-1295-4272-9138-f99709370657 --- firmware/common/timefuncs.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/firmware/common/timefuncs.c b/firmware/common/timefuncs.c index cc5484037..6fdc0b724 100644 --- a/firmware/common/timefuncs.c +++ b/firmware/common/timefuncs.c @@ -27,10 +27,11 @@ #include "timefuncs.h" #include "debug.h" -#if !(defined SIMULATOR && CONFIG_RTC) - +#if !defined SIMULATOR || !CONFIG_RTC static struct tm tm; +#endif /* !defined SIMULATOR || !CONFIG_RTC */ +#if !CONFIG_RTC static void fill_default_tm(struct tm *tm) { tm->tm_sec = 0; @@ -43,7 +44,7 @@ static void fill_default_tm(struct tm *tm) tm->tm_yday = 0; /* Not implemented for now */ tm->tm_isdst = -1; /* Not implemented for now */ } -#endif /* !(defined SIMULATOR && CONFIG_RTC)*/ +#endif /* !CONFIG_RTC */ bool valid_time(const struct tm *tm) { -- 2.11.4.GIT