aboutsummaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2005-07-22 04:24:05 +0000
committerbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2005-07-22 04:24:05 +0000
commit618089a9116c8468f1c944de4338e815cbb6bf1c (patch)
treef669c8bbed1e11567b9e03eb7a743d23884a85c2 /libiberty
parentee1b5c4320dad2abea05838d6e6cef3c1e3529b3 (diff)
* getopt.c: Include "ansidecl.h".
(_getopt_initialize): Mark argc and argv parameters as unused. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102271 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog5
-rw-r--r--libiberty/getopt.c9
2 files changed, 11 insertions, 3 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index 9509f89953d..2ab94a2cc22 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,5 +1,10 @@
2005-07-22 Ben Elliston <bje@gnu.org>
+ * getopt.c: Include "ansidecl.h".
+ (_getopt_initialize): Mark argc and argv parameters as unused.
+
+2005-07-22 Ben Elliston <bje@gnu.org>
+
* regex.c (regcomp): Change type of `i' from unsigned to int.
2005-07-22 Ben Elliston <bje@gnu.org>
diff --git a/libiberty/getopt.c b/libiberty/getopt.c
index 0b5c2e8f6aa..848c183f34f 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, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98
- Free Software Foundation, Inc.
+ Copyright (C) 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
+ 1996, 1997, 1998, 2005 Free Software Foundation, Inc.
NOTE: This source is derived from an old version taken from the GNU C
Library (glibc).
@@ -43,6 +43,7 @@
#endif
#include <stdio.h>
+#include "ansidecl.h"
/* Comment out all this code if we are using the GNU C Library, and are not
actually compiling the library itself. This code is part of the GNU C
@@ -397,7 +398,9 @@ exchange (char **argv)
static const char *_getopt_initialize (int, char *const *, const char *);
#endif
static const char *
-_getopt_initialize (int argc, char *const *argv, const char *optstring)
+_getopt_initialize (int argc ATTRIBUTE_UNUSED,
+ char *const *argv ATTRIBUTE_UNUSED,
+ const char *optstring)
{
/* Start processing options with ARGV-element 1 (since ARGV-element 0
is the program name); the sequence of previously skipped