Subject: kern/13763: small coding error
To: None <gnats-bugs@gnats.netbsd.org>
From: Hideo Saito <saito@densan.co.jp>
List: netbsd-bugs
Date: 08/20/2001 18:17:25
>Number: 13763
>Category: kern
>Synopsis: small coding error(gcc3.0 issued a warnig)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Aug 20 18:13:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Hideo Saito
>Release: NetBSD 1.5.1
>Organization:
>Environment:
DCP-P750/10(DENSAN Compact-PCI bus PowerPC Board)
System: NetBSD vw5 1.5.1 NetBSD 1.5.1 (GENERIC) #4: Mon Jul 23 18:30:58 JST 2001 saito@vw4:/user5/NetBSD-1.5.1/usr/src/sys/arch/devosppc/compile/GENERIC devosppc
>Description:
I tried to compile all source files by gcc3.0,
gcc3.0 issued warnigs as to a few files.
>How-To-Repeat:
>Fix:
--- sys/dev/usb/umass.c.orig Wed Oct 4 11:38:55 2000
+++ sys/dev/usb/umass.c Thu Jul 19 16:14:37 2001
@@ -761,7 +761,7 @@
USB_MATCH_START(umass, uaa);
#if defined(__FreeBSD__)
struct umass_softc *sc = device_get_softc(self);
-#else if defined(__NetBSD__) || defined(__OpenBSD__)
+#elif defined(__NetBSD__) || defined(__OpenBSD__)
struct umass_softc scs, *sc = &scs;
memset(sc, 0, sizeof *sc);
#endif
>Release-Note:
>Audit-Trail:
>Unformatted: