Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/i2c Initialize a variable that gcc thinks might be u...
details: https://anonhg.NetBSD.org/src/rev/48a794ee42dd
branches: trunk
changeset: 332988:48a794ee42dd
user: martin <martin%NetBSD.org@localhost>
date: Mon Oct 13 10:29:27 2014 +0000
description:
Initialize a variable that gcc thinks might be used uninitialized.
diffstat:
sys/dev/i2c/ds1307.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r aa947e2177cd -r 48a794ee42dd sys/dev/i2c/ds1307.c
--- a/sys/dev/i2c/ds1307.c Mon Oct 13 09:57:35 2014 +0000
+++ b/sys/dev/i2c/ds1307.c Mon Oct 13 10:29:27 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ds1307.c,v 1.19 2014/10/12 01:23:23 macallan Exp $ */
+/* $NetBSD: ds1307.c,v 1.20 2014/10/13 10:29:27 martin Exp $ */
/*
* Copyright (c) 2003 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ds1307.c,v 1.19 2014/10/12 01:23:23 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ds1307.c,v 1.20 2014/10/13 10:29:27 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -712,7 +712,7 @@
dsrtc_refresh(struct sysmon_envsys *sme, envsys_data_t *edata)
{
struct dsrtc_softc *sc = sme->sme_cookie;
- uint32_t temp;
+ uint32_t temp = 0; /* XXX gcc */
if (dsrtc_read_temp(sc, &temp) == 0) {
edata->state = ENVSYS_SINVALID;
Home |
Main Index |
Thread Index |
Old Index