Subject: port-mac68k/12794: grf_compat.c:390: warning: unused variable `rv'
To: None <gnats-bugs@gnats.netbsd.org>
From: Thilo Manske <Thilo.Manske@HEH.Uni-Oldenburg.DE>
List: netbsd-bugs
Date: 04/30/2001 18:55:23
>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:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 30 09:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>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:
>Unformatted: