"free_string_field" defined but not used

Andre Noll <[email protected]> Wed, 3 Mar 2010 19:22:28 +0100
Newsgroups gmane.comp.gnu.gengetopt.general
Message-ID <[email protected]>
--===============0320933049==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="QMBzfVONVaIN0ukq"
Content-Disposition: inline


--QMBzfVONVaIN0ukq
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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=3D"(paraslash git, associative expansion)" \
                --output-dir=3Dcmdline \
                --set-package=3Dmp3dec_filter \
                --arg-struct-name=3Dmp3dec_filter_args_info \
                --file-name=3Dmp3dec_filter.cmdline \
                --func-name=3Dmp3dec_cmdline_parser

Any hints on how to avoid that warning?

Thanks
Andre
--=20
The only person who always got his work done by Friday was Robinson Crusoe

--QMBzfVONVaIN0ukq
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFLjqjkWto1QDEAkw8RAoJUAJ9j5BKBYpl8LkwXyEbhtJ5fjzrHYQCdFpn0
UrA/3zMSASw8BHv1e8N9IkU=
=CVIQ
-----END PGP SIGNATURE-----

--QMBzfVONVaIN0ukq--



--===============0320933049==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Help-gengetopt mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gengetopt

--===============0320933049==--