Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Sep 1997 18:58:08 +0200
From:      j@uriah.heep.sax.de (J Wunsch)
To:        hackers@FreeBSD.ORG
Subject:   Re: 'warning: function declaration isn't a prototype'
Message-ID:  <19970908185808.ZL10971@uriah.heep.sax.de>
In-Reply-To: <199709080907.LAA05238@rvc1.informatik.ba-stuttgart.de>; from Wolfgang Helbig on Sep 8, 1997 11:07:52 %2B0200
References:  <19970908002641.TV55800@uriah.heep.sax.de> <199709080907.LAA05238@rvc1.informatik.ba-stuttgart.de>

next in thread | previous in thread | raw e-mail | index | archive | help
As Wolfgang Helbig wrote:

> > What you've been using is what K&R II calls ``old-style function
> > declarations''.
> 
> Strange thing is, I cannot provoke this warning, i. e this source
> compiles with -ansi -pedantic -Wall option without any messages
> output by cc(1).  What am I missing?

<bsd.kern.mk>:

#
# Warning flags for compiling the kernel and components of the kernel.
#
CWARNFLAGS?=	-Wreturn-type -Wcomment -Wredundant-decls -Wimplicit \
		-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes \
		                                     ^^^^^^^^^^^^^^^^^^^^
		-Wpointer-arith # -W -Winline -Wunused -Wcast-qual

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



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