Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/time gcc on the sparc needs help with variables it ...
details: https://anonhg.NetBSD.org/src/rev/de298eb38ab8
branches: trunk
changeset: 331606:de298eb38ab8
user: christos <christos%NetBSD.org@localhost>
date: Sat Aug 16 10:38:43 2014 +0000
description:
gcc on the sparc needs help with variables it thinks are unitialized, but are not.
diffstat:
lib/libc/time/zic.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (36 lines):
diff -r 58f861988bdf -r de298eb38ab8 lib/libc/time/zic.c
--- a/lib/libc/time/zic.c Sat Aug 16 08:43:12 2014 +0000
+++ b/lib/libc/time/zic.c Sat Aug 16 10:38:43 2014 +0000
@@ -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 @@
zic_t offset;
INITIALIZE(ktime);
+ ktime = 0; /* XXX: gcc */
if (useuntil) {
/*
** Turn untiltime into UT
@@ -2331,7 +2332,8 @@
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.
Home |
Main Index |
Thread Index |
Old Index