aboutsummaryrefslogtreecommitdiff
path: root/libiberty/getopt.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2004-12-08 01:02:33 +0000
committerDJ Delorie <dj@redhat.com>2004-12-08 01:02:33 +0000
commit62ce8ace27e429989b3afd426c3d10a9ec7327a3 (patch)
tree41532a9cb6feb652751a0b89ed230e18371e57a6 /libiberty/getopt.c
parent027e2a04f1bb48ef6839b4cdb83f11164db4c42d (diff)
downloadgdb-62ce8ace27e429989b3afd426c3d10a9ec7327a3.zip
gdb-62ce8ace27e429989b3afd426c3d10a9ec7327a3.tar.gz
gdb-62ce8ace27e429989b3afd426c3d10a9ec7327a3.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/getopt.c')
-rw-r--r--libiberty/getopt.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/libiberty/getopt.c b/libiberty/getopt.c
index 6d6ea14..a1e4827 100644
--- a/libiberty/getopt.c
+++ b/libiberty/getopt.c
@@ -3,8 +3,8 @@
"Keep this file name-space clean" means, talk to drepper@gnu.org
before changing it!
- Copyright (C) 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
- 1996, 1997, 1998, 2004 Free Software Foundation, Inc.
+ Copyright (C) 1987, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98
+ Free Software Foundation, Inc.
NOTE: This source is derived from an old version taken from the GNU C
Library (glibc).
@@ -90,9 +90,6 @@
# endif
#endif
-/* Needed for ATTRIBUTE_UNUSED. */
-#include <ansidecl.h>
-
/* This version of `getopt' appears to the caller like standard Unix `getopt'
but it behaves differently for the user, since it allows the user
to intersperse the options with the other arguments.
@@ -396,8 +393,8 @@ static const char *_getopt_initialize (int, char *const *, const char *);
#endif
static const char *
_getopt_initialize (argc, argv, optstring)
- int argc ATTRIBUTE_UNUSED;
- char *const *argv ATTRIBUTE_UNUSED;
+ int argc;
+ char *const *argv;
const char *optstring;
{
/* Start processing options with ARGV-element 1 (since ARGV-element 0