diff options
author | Christopher Faylor <me@cgf.cx> | 2010-02-05 00:05:07 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2010-02-05 00:05:07 +0300 |
commit | 6e3f2c626d965a8de228372b819fc65f0ba6da64 (patch) | |
tree | 1909a5c5b7ba47e5e88f2ed59ca6ab54bbfc4e0b /winsup/cygwin/regex/regerror.c | |
parent | fa40bd922ee199af9b2d70389f80ce0e3b67d3d4 (diff) |
* regcomp.c (p_ere): Workaround incorrect compiler warning.
* regerror.c (regatoi): Return non-const string or compiler complains in
certain inexplicable situations.
Diffstat (limited to 'winsup/cygwin/regex/regerror.c')
-rw-r--r-- | winsup/cygwin/regex/regerror.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/regex/regerror.c b/winsup/cygwin/regex/regerror.c index 7e88be5cb..1bba3e4a6 100644 --- a/winsup/cygwin/regex/regerror.c +++ b/winsup/cygwin/regex/regerror.c @@ -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 |