From owner-freebsd-hackers Sun Sep 7 14:04:25 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA11210 for hackers-outgoing; Sun, 7 Sep 1997 14:04:25 -0700 (PDT) Received: from micron.efn.org (d198-232.uoregon.edu [128.223.198.232]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA11205 for ; Sun, 7 Sep 1997 14:04:21 -0700 (PDT) Received: (from mini@localhost) by micron.efn.org (8.8.5/8.8.5) id OAA05916; Sun, 7 Sep 1997 14:04:17 -0700 (PDT) Message-ID: <19970907140416.33084@micron.efn.org> Date: Sun, 7 Sep 1997 14:04:16 -0700 From: Jonathan Mini To: Joerg Wunsch Cc: hackers@FreeBSD.ORG Subject: Re: 'warning: function declaration isn't a prototype' Reply-To: Jonathan Mini References: <19970907020657.59233@micron.efn.org> <19970907115417.VA15613@uriah.heep.sax.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.76e In-Reply-To: <19970907115417.VA15613@uriah.heep.sax.de>; from J Wunsch on Sun, Sep 07, 1997 at 11:54:17AM +0200 X-files: The Truth is Out There. Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk J Wunsch stands accused of saying : > 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). Seen style(9) -- a friend pointed it out to me before I started working on the kernel. ...and I was prototyping. Like this : static void msctimer(); I changed it to : static void msctimer(void); ... and the problem went away. Funny, I have never received that watning before, and I have been using C (with prototypes like that) for many years. > -- > 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. ;-) -- Jonathan Mini (j_mini@efn.org) Ingenious Productions Software Development P.O. Box 5693 Eugene, Or 97405