summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorLukas Mai <l.mai@web.de>2013-09-29 00:12:44 +0200
committerTony Cook <tony@develop-help.com>2013-11-20 14:20:31 +1100
commit7b0eb0b818a1e6a78e2d2fc8de6c6aec637cf47f (patch)
tree7e02817e105ea5670d675787d571c6ef92d6f0d0 /mg.c
parent709aee9447f22f3f59d548d44298cca98a023f80 (diff)
downloadperl-7b0eb0b818a1e6a78e2d2fc8de6c6aec637cf47f.tar.gz
fix a few warnings (format strings, unused variable)
During compilation gcc complains about the following: perl.c:4970: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'U32' [-Wformat=] perl.c:5075: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'I32' [-Wformat=] mg.c:1972: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'ssize_t' [-Wformat=] pp_ctl.c:2610: warning: unused variable 'mark' [-Wunused-variable] regexec.c:2275: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Wformat=] This patch fixes all of them. Tony: warning: unused variable 'mark' was fixed in 481c819b
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 e8d22a33a9..7c10bd518c 100644
--- a/mg.c
+++ b/mg.c
@@ -1969,7 +1969,7 @@ Perl_magic_setdbline(pTHX_ SV *sv, MAGIC *mg)
/* The magic ptr/len for the debugger's hash should always be an SV. */
if (UNLIKELY(mg->mg_len != HEf_SVKEY)) {
Perl_croak(aTHX_ "panic: magic_setdbline len=%"IVdf", ptr='%s'",
- mg->mg_len, mg->mg_ptr);
+ (IV)mg->mg_len, mg->mg_ptr);
}
/* Use sv_2iv instead of SvIV() as the former generates smaller code, and