diff options
author | Robin Barker <r.m.barker@btinternet.com> | 2010-08-14 13:58:51 -0500 |
---|---|---|
committer | Steve Peters <steve@fisharerojo.org> | 2010-08-14 13:58:51 -0500 |
commit | db7198b53dd9e7c0c335754a463be277da12e8b5 (patch) | |
tree | b71b4c993eb4830bf58cf63eed59e21d21826071 /mg.c | |
parent | e761bb84a9e140614351efd76e7716ec2238cd75 (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |