Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jan 96 17:10 MET
From:      dirk@hal.in-berlin.de (Dirk Froemberg)
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/925: shmexit tries to return value although declared void
Message-ID:  <m0tWmof-000BGwC@hal.in-berlin.de>
Resent-Message-ID: <199601011620.IAA25679@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         925
>Category:       kern
>Synopsis:       shmexit tries to return value although declared void
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan  1 08:20:02 PST 1996
>Last-Modified:
>Originator:     Dirk Froemberg
>Organization:
>Release:        FreeBSD 2.1-STABLE i386
>Environment:

	FreeBSD 2.1-STABLE, /sys/kern/sysv_shm.c 1.5.4.1

>Description:

Output of 'make kernel':

[...]
../../kern/sysv_shm.c:563: warning: `return' with a value, in function returning void
[...]

>How-To-Repeat:

	'make kernel' 9-)

>Fix:
	
	It would be obvious to change 'void shmexit(...)' into
	'int shmexit(...)' but none of the callers is interested
	in return values.
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m0tWmof-000BGwC>