summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorRobin Barker <r.m.barker@btinternet.com>2010-08-14 13:58:51 -0500
committerSteve Peters <steve@fisharerojo.org>2010-08-14 13:58:51 -0500
commitdb7198b53dd9e7c0c335754a463be277da12e8b5 (patch)
treeb71b4c993eb4830bf58cf63eed59e21d21826071 /mg.c
parente761bb84a9e140614351efd76e7716ec2238cd75 (diff)
downloadperl-db7198b53dd9e7c0c335754a463be277da12e8b5.tar.gz
RT #74436: [PATCH] Add -Wwrite-strings
The perl source has for some while been clean to -Wwrite-strings. I suggest this warning be added to cflags. The patch makes the appropriate change to cflags.SH and silences a warning from mg.c
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mg.c b/mg.c
index 95abbf6f16..797b57e74a 100644
--- a/mg.c
+++ b/mg.c
@@ -762,7 +762,7 @@ Perl_magic_get(pTHX_ SV *sv, MAGIC *mg)
{
dVAR;
register I32 paren;
- register char *s = NULL;
+ register const char *s = NULL;
register REGEXP *rx;
const char * const remaining = mg->mg_ptr + 1;
const char nextchar = *remaining;