summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-11-02 16:50:12 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-11-02 16:50:12 +0000
commitf1f66076265cc2bac3adabd54c01b0dea28ca3f0 (patch)
tree995188aa60f1633c89a20a0cfaf3bcdf52e56e73 /mg.c
parentb8fcbefe6253f6cbcf6817158c0e99c8018b2d46 (diff)
downloadperl-f1f66076265cc2bac3adabd54c01b0dea28ca3f0.tar.gz
Explicitly specify some printf formats for constant strings.
This is mostly to silence gcc's warning, "format not a string literal and no format arguments". p4raw-id: //depot/perl@34694
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mg.c b/mg.c
index e1438feb51..8497df954e 100644
--- a/mg.c
+++ b/mg.c
@@ -612,7 +612,7 @@ Perl_magic_regdatum_set(pTHX_ SV *sv, MAGIC *mg)
PERL_ARGS_ASSERT_MAGIC_REGDATUM_SET;
PERL_UNUSED_ARG(sv);
PERL_UNUSED_ARG(mg);
- Perl_croak(aTHX_ PL_no_modify);
+ Perl_croak(aTHX_ "%s", PL_no_modify);
NORETURN_FUNCTION_END;
}
@@ -2358,7 +2358,7 @@ Perl_magic_set(pTHX_ SV *sv, MAGIC *mg)
* set without a previous pattern match. Unless it's C<local $1>
*/
if (!PL_localizing) {
- Perl_croak(aTHX_ PL_no_modify);
+ Perl_croak(aTHX_ "%s", PL_no_modify);
}
}
case '\001': /* ^A */