Mercurial > hg > octave-nkf > gnulib-hg
changeset 470:2f0e769e20a6
(_getopt_internal) [lint]: Initialize INDFOUND to
avoid warning from gcc.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Fri, 04 Aug 1995 14:30:19 +0000 |
parents | c3052f3c02fe |
children | 7ea6df68b1a1 |
files | lib/getopt.c |
diffstat | 1 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/getopt.c +++ b/lib/getopt.c @@ -476,7 +476,8 @@ if (longopts != NULL && (argv[optind][1] == '-' - || (long_only && (argv[optind][2] || !my_index (optstring, argv[optind][1]))))) + || (long_only && (argv[optind][2] + || !my_index (optstring, argv[optind][1]))))) { char *nameend; const struct option *p; @@ -509,8 +510,13 @@ indfound = option_index; } else - /* Second or later nonexact match found. */ - ambig = 1; + { + /* Second or later nonexact match found. */ + ambig = 1; +#ifdef lint + indfound = 0; +#define + } } if (ambig && !exact)