NetBSD Problem Report #12794

Received: (qmail 4248 invoked from network); 30 Apr 2001 16:55:04 -0000
Message-Id: <200104301655.f3UGtNr07462@Apfel.T>
Date: Mon, 30 Apr 2001 18:55:23 +0200 (MEST)
From: Thilo Manske <Thilo.Manske@HEH.Uni-Oldenburg.DE>
Reply-To: Thilo.Manske@HEH.Uni-Oldenburg.DE
To: gnats-bugs@gnats.netbsd.org
Subject: grf_compat.c:390: warning: unused variable `rv'
X-Send-Pr-Version: 3.95

>Number:         12794
>Category:       port-mac68k
>Synopsis:       grf_compat.c:390: warning: unused variable `rv'
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-mac68k-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 30 16:56:00 +0000 2001
>Closed-Date:    Mon Apr 30 17:11:52 +0000 2001
>Last-Modified:  Mon Apr 30 17:11:52 +0000 2001
>Originator:     Thilo Manske
>Release:        current since Mar 15 2001 I guess.
>Organization:
>Environment:

System: NetBSD Apfel 1.5U NetBSD 1.5U (Apfel) #29: Mon Apr 30 13:03:02 MEST 2001 thilo@Apfel:/usr/src/sys/arch/mac68k/compile/Apfel mac68k
Architecture: m68k
Machine: mac68k
>Description:
Trying to compile a kernel with pseudo-device grf fails with:

cc  -O2 -pipe -m68030 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith -Wno-uninitialized -Wno-main -msoft-float -I. -I../../../../arch -I../../../.. -nostdinc -DHZ="0x3c" -DM68030 -DFPU_EMULATE -DMAXUSERS=8 -D_KERNEL -Dmac68k  -c ../../../../arch/mac68k/dev/grf_compat.c
cc1: warnings being treated as errors
../../../../arch/mac68k/dev/grf_compat.c: In function `grfunmap':
../../../../arch/mac68k/dev/grf_compat.c:390: warning: unused variable `rv'
*** Error code 1

Stop.

>How-To-Repeat:
See above
>Fix:
Trivial:
--- /sys/arch/mac68k/dev/grf_compat.c.orig	Thu Mar 15 12:38:12 2001
+++ /sys/arch/mac68k/dev/grf_compat.c	Mon Apr 30 18:43:45 2001
@@ -387,7 +387,6 @@
 	struct proc *p;
 {
 	vm_size_t size;
-	int     rv;

 	addr -= sc->sc_dc->dc_offset;

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: wiz 
State-Changed-When: Mon Apr 30 10:11:41 PDT 2001 
State-Changed-Why:  
Applied the patch -- thanks! 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.