Date: Sun, 7 Sep 1997 14:04:16 -0700 From: Jonathan Mini <j_mini@efn.org> To: Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de> Cc: hackers@FreeBSD.ORG Subject: Re: 'warning: function declaration isn't a prototype' Message-ID: <19970907140416.33084@micron.efn.org> In-Reply-To: <19970907115417.VA15613@uriah.heep.sax.de>; from J Wunsch on Sun, Sep 07, 1997 at 11:54:17AM %2B0200 References: <19970907020657.59233@micron.efn.org> <19970907115417.VA15613@uriah.heep.sax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970907140416.33084>