Re: "free_string_field" defined but not used
Lorenzo Bettini <[email protected]> Thu, 04 Mar 2010 10:13:12 +0100
| Newsgroups | gmane.comp.gnu.gengetopt.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Andre I'll take a look at this issue: I'll have to tweak the condition that generates that function, and avoid to generate it when it is not needed. cheers Lorenzo Andre Noll wrote: > Hi Lorenzo, list > > I'm getting this gcc warning when compiling sources the generated by > gengetopt-2.22.4. Looking at the generated .c file, it appears that > gengetopt generates the static free_string_field() function but never > ends up using it. > > Of course I could compile the .c Files generated by gengetopt without > using -Wall to get rid of the message, but I think it would be cleaner > if unused static functions would not be generated at all. > > The corresponding .ggo File contains only a single flag option, > and I'm using the following command line: > > gengetopt --set-version="(paraslash git, associative expansion)" \ > --output-dir=cmdline \ > --set-package=mp3dec_filter \ > --arg-struct-name=mp3dec_filter_args_info \ > --file-name=mp3dec_filter.cmdline \ > --func-name=mp3dec_cmdline_parser > > Any hints on how to avoid that warning? > > Thanks > Andre > > > ------------------------------------------------------------------------ > > _______________________________________________ > Help-gengetopt mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/help-gengetopt -- Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino 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