projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23b1824
)
getopt: Avoid gcc warning.
author
Bruno Haible
<bruno@clisp.org>
Sat, 4 Jun 2011 13:32:18 +0000
(15:32 +0200)
committer
Bruno Haible
<bruno@clisp.org>
Sat, 4 Jun 2011 13:32:18 +0000
(15:32 +0200)
* lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
ChangeLog
patch
|
blob
|
history
lib/getopt.c
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
index 0406a5467da92defa4ef59857904bb331e4d5ebe..b38b724ce6a40639263e75ec2c8687aa8530568b 100644
(file)
--- 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.
diff --git
a/lib/getopt.c
b/lib/getopt.c
index ee96d972d953f487e9ecf2ce78afea2df4b48d90..23510d8afec30de37e89f7d3eeca72854cd6f57e 100644
(file)
--- 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;