From: Jim Meyering Date: Fri, 4 Aug 1995 15:09:12 +0000 (+0000) Subject: . X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bdf2d328c6e5cc873d59f5c3027ea6d7afd4755;p=pspp . --- diff --git a/lib/getopt.c b/lib/getopt.c index 3cdb1f2264..1af2a96290 100644 --- a/lib/getopt.c +++ b/lib/getopt.c @@ -490,6 +490,10 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only) for (nameend = nextchar; *nameend && *nameend != '='; nameend++) /* Do nothing. */ ; +#ifdef lint + indfound = 0; /* Avoid spurious compiler warning. */ +#endif + /* Test all long options for either exact match or abbreviated matches. */ for (p = longopts, option_index = 0; p->name; p++, option_index++) @@ -510,13 +514,8 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only) indfound = option_index; } else - { - /* Second or later nonexact match found. */ - ambig = 1; -#ifdef lint - indfound = 0; -#define - } + /* Second or later nonexact match found. */ + ambig = 1; } if (ambig && !exact)