Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-8]: src/sys/dev/mii The gcc on this branch is not smart enough an...
details: https://anonhg.NetBSD.org/src/rev/da14cf4fff3f
branches: netbsd-8
changeset: 454078:da14cf4fff3f
user: martin <martin%NetBSD.org@localhost>
date: Wed Sep 04 08:33:39 2019 +0000
description:
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).
diffstat:
sys/dev/mii/micphy.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 171348f372a9 -r da14cf4fff3f sys/dev/mii/micphy.c
--- a/sys/dev/mii/micphy.c Tue Sep 03 12:21:15 2019 +0000
+++ b/sys/dev/mii/micphy.c Wed Sep 04 08:33:39 2019 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index