Module Name:    src
Committed By:   martin
Date:           Wed Sep  4 08:33:39 UTC 2019

Modified Files:
        src/sys/dev/mii [netbsd-8]: micphy.c

Log Message:
The gcc on this branch is not smart enough and the build breaks due to
a bogus "may be used uninitialized" warning. Initialize to zero with
XXX gcc comment (suggested by msaitoh).


To generate a diff of this commit:
cvs rdiff -u -r1.4.10.1 -r1.4.10.2 src/sys/dev/mii/micphy.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/mii/micphy.c
diff -u src/sys/dev/mii/micphy.c:1.4.10.1 src/sys/dev/mii/micphy.c:1.4.10.2
--- src/sys/dev/mii/micphy.c:1.4.10.1	Sun Sep  1 10:14:20 2019
+++ src/sys/dev/mii/micphy.c	Wed Sep  4 08:33:39 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: micphy.c,v 1.4.10.1 2019/09/01 10:14:20 martin Exp $	*/
+/*	$NetBSD: micphy.c,v 1.4.10.2 2019/09/04 08:33:39 martin Exp $	*/
 
 /*-
  * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: micphy.c,v 1.4.10.1 2019/09/01 10:14:20 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: micphy.c,v 1.4.10.2 2019/09/04 08:33:39 martin Exp $");
 
 #include "opt_mii.h"
 
@@ -158,7 +158,7 @@ micphyattach(device_t parent, device_t s
 static void
 micphy_reset(struct mii_softc *sc)
 {
-	int reg;
+	int reg = 0; /* XXX gcc */
 
 	/*
 	 * The 8081 has no "sticky bits" that survive a soft reset; several bits

Reply via email to