From owner-freebsd-hackers Sun Sep 7 03:19:31 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id DAA12282 for hackers-outgoing; Sun, 7 Sep 1997 03:19:31 -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 DAA12274 for ; Sun, 7 Sep 1997 03:19:26 -0700 (PDT) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id MAA16362; Sun, 7 Sep 1997 12:19:25 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.7/8.8.5) id LAA06242; Sun, 7 Sep 1997 11:54:17 +0200 (MET DST) Message-ID: <19970907115417.VA15613@uriah.heep.sax.de> Date: Sun, 7 Sep 1997 11:54:17 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: hackers@FreeBSD.ORG Cc: j_mini@efn.org (Jonathan Mini) Subject: Re: 'warning: function declaration isn't a prototype' References: <19970907020657.59233@micron.efn.org> 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: <19970907020657.59233@micron.efn.org>; from Jonathan Mini on Sep 7, 1997 02:06:57 -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Jonathan Mini wrote: > I am getting warnings along the lines of 'function declaration isn't a > prototype' every time I declare a function that is void func(); (static or > public) > Does anybody know what this warning is trying to tell me? That you should use prototypes. extern void func(void); See also style(9). -- 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. ;-)