Subject: kern/3936: gus.c compiler warning -- unused gusmax_get_props
To: None <gnats-bugs@gnats.netbsd.org>
From: Erik Bertelsen <erik@erik-be.uni-c.dk>
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
>Last-Modified:
>Originator:     Erik Bertelsen
>Organization:
	
>Release:        NetBSD-current 3 Aug 1997
>Environment:
	
System: NetBSD erik-be.uni-c.dk 1.2G NetBSD 1.2G (ERIKBE) #43: Fri Jul 25 18:45:24 MEST 1997 erik@erik-be.uni-c.dk:/sw/NetBSD/src/sys/arch/i386/compile/ERIKBE i386


>Description:
	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.

>How-To-Repeat:
>Fix:

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 1.1.1.18
diff -r1.1.1.18 gus.c
431d430
< STATIC int    gusmax_get_props __P((void *));
3843,3850d3841
< }
< 
< STATIC int
< gusmax_get_props(addr)
<       void *addr;
< {
<       struct ad1848_softc *ac = addr;
<       return gus_get_props(ac->parent);

>Audit-Trail:
>Unformatted: