Re: warning: function declaration isn't a prototype
Lorenzo Bettini <[email protected]>
| Newsgroups | gmane.comp.gnu.gengetopt.general |
|---|---|
| Message-ID | <[email protected]> |
Andre Noll wrote: > Hi all, > > with the latest gengetopt-2.21 I get tons of these warnings > which are due to me compiling with -Wstrict-prototypes and > foo_cmdline_parser_params_init() missing a void in both the declaration > and the definition. Trivial fix below. > Thanks Andre! I always forget about using void (I never used it in my programs for parameters). I'll apply the fix cheers Lorenzo -- Lorenzo Bettini, PhD in Computer Science, DSI, Univ. di Firenze ICQ# lbetto, 16080134 (GNU/Linux User # 158233) HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com http://www.myspace.com/supertrouperabba BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com http://www.gnu.org/software/src-highlite http://www.gnu.org/software/gengetopt http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net