diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-11-30 12:57:26 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-11-30 12:57:26 +0100 |
commit | 7182c6def360378038c9dc824b7cdf8f3d73a73f (patch) | |
tree | 703298652f45ac063837ae79a313e84abb0b21c0 /runtime/datetime.c | |
parent | 886ce6653dbc12937fdd80687b167e4323f59ce4 (diff) | |
download | rsyslog-7182c6def360378038c9dc824b7cdf8f3d73a73f.tar.gz rsyslog-7182c6def360378038c9dc824b7cdf8f3d73a73f.tar.bz2 rsyslog-7182c6def360378038c9dc824b7cdf8f3d73a73f.zip |
silence compiler warnings
the changes do not affect actual code execution, just keep the
compile log clean.
Diffstat (limited to 'runtime/datetime.c')
-rw-r--r-- | runtime/datetime.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; } |