From 3d7fa330593948749e382e99a28a49ddf6878bde Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 4 Jun 2011 15:32:18 +0200 Subject: [PATCH] getopt: Avoid gcc warning. * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'. --- ChangeLog | 5 +++++ lib/getopt.c | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0406a5467d..b38b724ce6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-06-04 Bruno Haible + + getopt: Avoid gcc warning. + * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'. + 2011-06-04 Bruno Haible strerror_r: Fix comments. diff --git a/lib/getopt.c b/lib/getopt.c index ee96d972d9..23510d8afe 100644 --- a/lib/getopt.c +++ b/lib/getopt.c @@ -488,7 +488,6 @@ _getopt_internal_r (int argc, char **argv, const char *optstring, struct option_list *next; } *ambig_list = NULL; int exact = 0; - int ambig = 0; int indfound = -1; int option_index; -- 2.30.2