changeset 14863:c14b056a7ea7

getopt: Avoid gcc warning. * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
author Bruno Haible <bruno@clisp.org>
date Sat, 04 Jun 2011 15:32:18 +0200
parents 42eaca1a6673
children 93b21a56e926
files ChangeLog lib/getopt.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-06-04  Bruno Haible  <bruno@clisp.org>
+
+	getopt: Avoid gcc warning.
+	* lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
+
 2011-06-04  Bruno Haible  <bruno@clisp.org>
 
 	strerror_r: Fix comments.
--- a/lib/getopt.c
+++ b/lib/getopt.c
@@ -488,7 +488,6 @@
         struct option_list *next;
       } *ambig_list = NULL;
       int exact = 0;
-      int ambig = 0;
       int indfound = -1;
       int option_index;