gcc on the sparc needs help with variables it thinks are unitialized, but are not.
This commit is contained in:
parent
f80fae768b
commit
f31197977a
@ -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
|
** This file is in the public domain, so clarified as of
|
||||||
** 2006-07-17 by Arthur David Olson.
|
** 2006-07-17 by Arthur David Olson.
|
||||||
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#ifndef lint
|
#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 */
|
#endif /* !defined lint */
|
||||||
|
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
@ -2318,6 +2318,7 @@ outzone(const struct zone *const zpfirst, const int zonecount)
|
|||||||
zic_t offset;
|
zic_t offset;
|
||||||
|
|
||||||
INITIALIZE(ktime);
|
INITIALIZE(ktime);
|
||||||
|
ktime = 0; /* XXX: gcc */
|
||||||
if (useuntil) {
|
if (useuntil) {
|
||||||
/*
|
/*
|
||||||
** Turn untiltime into UT
|
** Turn untiltime into UT
|
||||||
@ -2331,7 +2332,8 @@ outzone(const struct zone *const zpfirst, const int zonecount)
|
|||||||
if (!zp->z_untilrule.r_todisstd)
|
if (!zp->z_untilrule.r_todisstd)
|
||||||
untiltime = tadd(untiltime,
|
untiltime = tadd(untiltime,
|
||||||
-stdoff);
|
-stdoff);
|
||||||
}
|
} else
|
||||||
|
untiltime = 0; /* XXX: gcc */
|
||||||
/*
|
/*
|
||||||
** Find the rule (of those to do, if any)
|
** Find the rule (of those to do, if any)
|
||||||
** that takes effect earliest in the year.
|
** that takes effect earliest in the year.
|
||||||
|
Loading…
Reference in New Issue
Block a user