diff options
author | DJ Delorie <dj@redhat.com> | 2004-02-17 02:11:39 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2004-02-17 02:11:39 +0000 |
commit | f937530551ba8561aed3e15538bb1803e99f2ee8 (patch) | |
tree | 7a28ab0ca296e9a24cad9641d9d7bc71bd177f45 /libiberty/regex.c | |
parent | 5f51a1247057ddae9da3c175cd76f6ccb0cb74a1 (diff) | |
download | binutils-gdb-f937530551ba8561aed3e15538bb1803e99f2ee8.tar.gz |
merge from gcc
Diffstat (limited to 'libiberty/regex.c')
-rw-r--r-- | libiberty/regex.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; { |