Module Name: src Committed By: christos Date: Sat Aug 16 10:38:43 UTC 2014
Modified Files: src/lib/libc/time: zic.c Log Message: gcc on the sparc needs help with variables it thinks are unitialized, but are not. To generate a diff of this commit: cvs rdiff -u -r1.47 -r1.48 src/lib/libc/time/zic.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/time/zic.c diff -u src/lib/libc/time/zic.c:1.47 src/lib/libc/time/zic.c:1.48 --- src/lib/libc/time/zic.c:1.47 Fri Aug 15 07:04:07 2014 +++ src/lib/libc/time/zic.c Sat Aug 16 06:38:43 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: zic.c,v 1.47 2014/08/15 11:04:07 christos Exp $ */ +/* $NetBSD: zic.c,v 1.48 2014/08/16 10:38:43 christos Exp $ */ /* ** This file is in the public domain, so clarified as of ** 2006-07-17 by Arthur David Olson. @@ -10,7 +10,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: zic.c,v 1.47 2014/08/15 11:04:07 christos Exp $"); +__RCSID("$NetBSD: zic.c,v 1.48 2014/08/16 10:38:43 christos Exp $"); #endif /* !defined lint */ #include "version.h" @@ -2318,6 +2318,7 @@ outzone(const struct zone *const zpfirst zic_t offset; INITIALIZE(ktime); + ktime = 0; /* XXX: gcc */ if (useuntil) { /* ** Turn untiltime into UT @@ -2331,7 +2332,8 @@ outzone(const struct zone *const zpfirst if (!zp->z_untilrule.r_todisstd) untiltime = tadd(untiltime, -stdoff); - } + } else + untiltime = 0; /* XXX: gcc */ /* ** Find the rule (of those to do, if any) ** that takes effect earliest in the year.