gcc on the sparc needs help with variables it thinks are unitialized, but are not.

This commit is contained in:
christos 2014-08-16 10:38:43 +00:00
parent f80fae768b
commit f31197977a

View File

@ -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, const int zonecount)
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, const int zonecount)
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.