* regcomp.c (p_ere): Workaround incorrect compiler warning.

* regerror.c (regatoi): Return non-const string or compiler complains in
certain inexplicable situations.
This commit is contained in:
Christopher Faylor
2010-02-04 21:05:07 +00:00
parent fa40bd922e
commit 6e3f2c626d
3 changed files with 9 additions and 3 deletions

View File

@ -178,7 +178,7 @@ regatoi(const regex_t *preg, char *localbuf)
if (r->code == 0)
#ifdef __CYGWIN__ /* Avoid whining compiler */
{
static const char null[] = "0";
static char null[] = "0";
return null;
}
#else