summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-12-06 22:42:18 -0700
committerKarl Williamson <public@khwilliamson.com>2012-12-09 09:47:17 -0700
commita1894d81735066945ef520af52cc180d1e0dfb10 (patch)
treefbe1d58c83b085af9b73c2bfe7201394abb290d1 /pp.c
parent6c2f1a55be4cd937e7e87f2ffb875a22688fb01e (diff)
downloadperl-a1894d81735066945ef520af52cc180d1e0dfb10.tar.gz
Silence some g++ compiler warnings
Changing these slightly got rid of the warnings like: toke.c:9168: warning: format not a string literal and no format arguments
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pp.c b/pp.c
index cf59a84e21..2eb5bc184d 100644
--- a/pp.c
+++ b/pp.c
@@ -1646,7 +1646,7 @@ PP(pp_repeat)
if (GIMME == G_ARRAY && PL_op->op_private & OPpREPEAT_DOLIST) {
dMARK;
- static const char oom_list_extend[] = "Out of memory during list extend";
+ static const char* const oom_list_extend = "Out of memory during list extend";
const I32 items = SP - MARK;
const I32 max = items * count;
@@ -1698,7 +1698,7 @@ PP(pp_repeat)
SV * const tmpstr = POPs;
STRLEN len;
bool isutf;
- static const char oom_string_extend[] =
+ static const char* const oom_string_extend =
"Out of memory during string extend";
if (TARG != tmpstr)