Subject: kern/32630: Illegal return in sys/kern/uipc_mbuf2.c
To: None <,,>
From: None <>
List: netbsd-bugs
Date: 01/25/2006 16:05:01
>Number:         32630
>Category:       kern
>Synopsis:       Illegal return in sys/kern/uipc_mbuf2.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 25 16:05:01 +0000 2006
>Originator:     Yves-Emmanuel JUTARD
>Release:        3.0.0
THALES Communication
custom environment : recompiled from /src, only some parts of NetBSD are used (TCP/IP stack and some parts of the kernel)
in file sys/kern/uipc_mbuf2.c,v, l. 300
function 'm_tag_delete_nonpersistent' is declared returning nothing (void)
Yet, it does return something :
	return m_tag_delete_chain(m, NULL);
Compile this file with warnings on ;-)
Delete the 'return' keyword or change the prototype of 'm_tag_delete_chain'.