From owner-freebsd-hackers Mon Sep 8 10:20:51 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id KAA13303 for hackers-outgoing; Mon, 8 Sep 1997 10:20:51 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id KAA13292 for ; Mon, 8 Sep 1997 10:20:45 -0700 (PDT) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id TAA07760 for hackers@FreeBSD.ORG; Mon, 8 Sep 1997 19:20:40 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.7/8.8.5) id SAA17455; Mon, 8 Sep 1997 18:58:08 +0200 (MET DST) Message-ID: <19970908185808.ZL10971@uriah.heep.sax.de> 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' References: <19970908002641.TV55800@uriah.heep.sax.de> <199709080907.LAA05238@rvc1.informatik.ba-stuttgart.de> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199709080907.LAA05238@rvc1.informatik.ba-stuttgart.de>; from Wolfgang Helbig on Sep 8, 1997 11:07:52 +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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? : # # 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. ;-)