NetBSD Problem Report #13763
Received: (qmail 5576 invoked from network); 21 Aug 2001 01:12:48 -0000
Message-Id: <200108210117.f7L1HPR00354@vw5.densan.co.jp>
Date: Mon, 20 Aug 2001 18:17:25 -0700 (PDT)
From: Hideo Saito <saito@densan.co.jp>
Reply-To: saito@densan.co.jp
To: gnats-bugs@gnats.netbsd.org
Subject: small coding error
X-Send-Pr-Version: 3.95
>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: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Aug 21 01:13:01 +0000 2001
>Closed-Date: Sun Sep 30 19:00:55 +0000 2001
>Last-Modified: Sun Sep 30 19:00:55 +0000 2001
>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:
State-Changed-From-To: open->closed
State-Changed-By: wiz
State-Changed-When: Sun Sep 30 11:43:08 PDT 2001
State-Changed-Why:
Fix has been applied to the 1.5-branch (was fixed in -current a long time ago).
Thanks for the PR!
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.