Subject: kern/3936: gus.c compiler warning -- unused gusmax_get_props
To: None <>
From: Erik Bertelsen <>
List: netbsd-bugs
Date: 08/04/1997 12:26:48
>Number:         3936
>Category:       kern
>Synopsis:       gus.c compiler warning -- unused gusmax_get_props
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug  4 01:35:01 1997
>Originator:     Erik Bertelsen
>Release:        NetBSD-current 3 Aug 1997
System: NetBSD 1.2G NetBSD 1.2G (ERIKBE) #43: Fri Jul 25 18:45:24 MEST 1997 i386

	Compiling gus.c causes a warning and consequently aborted compilation
	because gusmax_get_props is declared as a static function, but it
	is never used.


Either just remove the unused function per the patch below, or if the intention
is that it should be used, then find where to call it.

Index: gus.c
RCS file: /sw/cvs-base/src/sys/dev/isa/gus.c,v
retrieving revision
diff -r1.1.1.18 gus.c
< STATIC int    gusmax_get_props __P((void *));
< }
< STATIC int
< gusmax_get_props(addr)
<       void *addr;
< {
<       struct ad1848_softc *ac = addr;
<       return gus_get_props(ac->parent);