Subject: port-macppc/13471: dev/if_mc.c:373: warning: `mc_mediachange' defined but not use
To: None <gnats-bugs@gnats.netbsd.org>
From: None <makoto@ki.nu>
List: netbsd-bugs
Date: 07/15/2001 22:04:41
>Number:         13471
>Category:       port-macppc
>Synopsis:       building kernel stops with `mc_mediachange' defined but not use
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-macppc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 15 06:03:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Makoto Fujiwara
>Release:        2001-06-11 ... 2001-07-09
>Organization:
	www.ki.nu
>Environment:
	
System: NetBSD harry 1.5W NetBSD 1.5W (GENERIC) #4: 
	Wed Jun 20 16:46:24 JST 2001 
	makoto@scgj:/usr/20010618/sys/arch/macppc/compile/GENERIC macppc
Architecture: powerpc
Machine: macppc
>Description:
	Make release stops with following message.
+--------------------------------------------------
| cc1: warnings being treated as errors
| /usr/src/sys/arch/macppc/dev/if_mc.c:373: warning: 
|             `mc_mediachange' defined but not used
| /usr/src/sys/arch/macppc/dev/if_mc.c:399: warning: 
|              `mc_mediastatus' defined but not used
| *** Error code 1
+--------------------------------------------------
>How-To-Repeat:
	get -current source tree at least between 
        2001-06-11 and 2001-07-09, do make release
        with proper environment variable.
>Fix:
	To apply following patch

--- /home/makoto/macppc/if_mc.c	Fri Jun  8 19:41:51 2001
+++ src/sys/arch/macppc/dev/if_mc.c	Sun Jul 15 21:42:22 2001
@@ -368,7 +368,7 @@
 	sc->sc_plscc = PORTSEL_AUI;
 }
 
-int
+hide int
 mc_mediachange(sc)
 	struct mc_softc *sc;
 {
@@ -394,7 +394,7 @@
 	return 0;
 }
 
-void
+hide void
 mc_mediastatus(sc, ifmr)
 	struct mc_softc *sc;
 	struct ifmediareq *ifmr;

>Release-Note:
>Audit-Trail:
>Unformatted: