diff options
author | Karl Williamson <public@khwilliamson.com> | 2012-12-06 22:42:18 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2012-12-09 09:47:17 -0700 |
commit | a1894d81735066945ef520af52cc180d1e0dfb10 (patch) | |
tree | fbe1d58c83b085af9b73c2bfe7201394abb290d1 /pp.c | |
parent | 6c2f1a55be4cd937e7e87f2ffb875a22688fb01e (diff) | |
download | perl-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |