From 7182c6def360378038c9dc824b7cdf8f3d73a73f Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Fri, 30 Nov 2012 12:57:26 +0100 Subject: silence compiler warnings the changes do not affect actual code execution, just keep the compile log clean. --- runtime/datetime.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'runtime/datetime.c') diff --git a/runtime/datetime.c b/runtime/datetime.c index 10ab3c64..53bc1657 100644 --- a/runtime/datetime.c +++ b/runtime/datetime.c @@ -900,6 +900,11 @@ time_t syslogTime2time_t(struct syslogTime *ts) case 12: MonthInDays = 334; //until 01 of December break; + default: /* this cannot happen (and would be a program error) + * but we need the code to keep the compiler silent. + */ + MonthInDays = 0; /* any value fits ;) */ + break; } -- cgit v1.2.3