atom feed6 messages in org.freebsd.freebsd-hackersRe: 'warning: function declaration is...
FromSent OnAttachments
Jonathan MiniSep 7, 1997 2:06 am 
J WunschSep 7, 1997 2:53 am 
Jonathan MiniSep 7, 1997 2:03 pm 
J WunschSep 7, 1997 3:26 pm 
Wolfgang HelbigSep 8, 1997 2:07 am 
J WunschSep 8, 1997 9:57 am 
Subject:Re: 'warning: function declaration isn't a prototype'
From:J Wunsch (j@uriah.heep.sax.de)
Date:Sep 7, 1997 2:53:56 am
List:org.freebsd.freebsd-hackers

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).

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