summaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorkraai <kraai@138bc75d-0d04-0410-961f-82ee72b054a4>2004-02-17 01:59:42 +0000
committerkraai <kraai@138bc75d-0d04-0410-961f-82ee72b054a4>2004-02-17 01:59:42 +0000
commitb8f2aeef80b36704f41daf92bd837d578fb1db58 (patch)
treea6e25ba62ced58fc619c779ce13d91da736378d8 /libiberty
parent060b9b0d110d6a889ee110e34023e72b156b39c1 (diff)
downloadgcc-b8f2aeef80b36704f41daf92bd837d578fb1db58.tar.gz
* regex.c: Include <ansidecl.h>.
(regcomp): Cast i to int. (regerror): Add ATTRIBUTE_UNUSED to parameter preg. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77944 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog6
-rw-r--r--libiberty/regex.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index 10c7f4690e6..08b7d5b6b11 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,9 @@
+2004-02-16 Matt Kraai <kraai@alumni.cmu.edu>
+
+ * regex.c: Include <ansidecl.h>.
+ (regcomp): Cast i to int.
+ (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
+
2004-01-25 Ian Lance Taylor <ian@wasabisystems.com>
* configure.ac: Add m4_pattern_allow(LIBOBJS).
diff --git a/libiberty/regex.c b/libiberty/regex.c
index e3439b2ff63..522b0eedf44 100644
--- a/libiberty/regex.c
+++ b/libiberty/regex.c
@@ -36,6 +36,8 @@
# include <config.h>
#endif
+#include <ansidecl.h>
+
#ifndef PARAMS
# if defined __GNUC__ || (defined __STDC__ && __STDC__)
# define PARAMS(args) args
@@ -8040,7 +8042,7 @@ regcomp (preg, pattern, cflags)
/* Map uppercase characters to corresponding lowercase ones. */
for (i = 0; i < CHAR_SET_SIZE; i++)
- preg->translate[i] = ISUPPER (i) ? TOLOWER (i) : i;
+ preg->translate[i] = ISUPPER (i) ? TOLOWER (i) : (int) i;
}
else
preg->translate = NULL;
@@ -8175,7 +8177,7 @@ weak_alias (__regexec, regexec)
size_t
regerror (errcode, preg, errbuf, errbuf_size)
int errcode;
- const regex_t *preg;
+ const regex_t *preg ATTRIBUTE_UNUSED;
char *errbuf;
size_t errbuf_size;
{