Module Name:    src
Committed By:   martin
Date:           Mon Oct 13 10:29:27 UTC 2014

Modified Files:
        src/sys/dev/i2c: ds1307.c

Log Message:
Initialize a variable that gcc thinks might be used uninitialized.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/i2c/ds1307.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/i2c/ds1307.c
diff -u src/sys/dev/i2c/ds1307.c:1.19 src/sys/dev/i2c/ds1307.c:1.20
--- src/sys/dev/i2c/ds1307.c:1.19	Sun Oct 12 01:23:23 2014
+++ src/sys/dev/i2c/ds1307.c	Mon Oct 13 10:29:27 2014
@@ -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 @@ static void
 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;

Reply via email to