regex.c: Include <ansidecl.h>.

* regex.c: Include <ansidecl.h>.
	(regcomp): Cast i to int.
	(regerror): Add ATTRIBUTE_UNUSED to parameter preg.

From-SVN: r77944
This commit is contained in:
Matt Kraai 2004-02-17 01:59:42 +00:00 committed by Matt Kraai
parent a27b6b1a78
commit ef2a223fbd
2 changed files with 10 additions and 2 deletions

View File

@ -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).

View File

@ -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;
{