46 lines
1.7 KiB
Diff
46 lines
1.7 KiB
Diff
|
From 357c35e6f18e65f372e7a1b22ee39a3c7c9e5810 Mon Sep 17 00:00:00 2001
|
||
|
From: Robin Barker <RMBarker@cpan.org>
|
||
|
Date: Mon, 17 Dec 2012 18:20:14 +0100
|
||
|
Subject: [PATCH] Avoid compiler warnings due to mismatched types in *printf
|
||
|
format strings.
|
||
|
MIME-Version: 1.0
|
||
|
Content-Type: text/plain; charset=UTF-8
|
||
|
Content-Transfer-Encoding: 8bit
|
||
|
|
||
|
gcc (and probably others) was warning about a mismatch for between `int`
|
||
|
(implied by the format %d) and the actual type passed, `line_t`. Avoid this
|
||
|
by explicitly casting to UV, and using UVuf.
|
||
|
|
||
|
CPAN #63832
|
||
|
|
||
|
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
||
|
---
|
||
|
cpan/ExtUtils-Constant/lib/ExtUtils/Constant/ProxySubs.pm | 7 ++++---
|
||
|
1 file changed, 4 insertions(+), 3 deletions(-)
|
||
|
|
||
|
diff --git a/cpan/ExtUtils-Constant/lib/ExtUtils/Constant/ProxySubs.pm b/cpan/ExtUtils-Constant/lib/ExtUtils/Constant/ProxySubs.pm
|
||
|
index 545d322..c7e6d05 100644
|
||
|
--- a/cpan/ExtUtils-Constant/lib/ExtUtils/Constant/ProxySubs.pm
|
||
|
+++ b/cpan/ExtUtils-Constant/lib/ExtUtils/Constant/ProxySubs.pm
|
||
|
@@ -629,13 +629,14 @@ EOA
|
||
|
if ((C_ARRAY_LENGTH(values_for_notfound) > 1)
|
||
|
? hv_exists_ent(${c_subname}_missing, sv, 0) : 0) {
|
||
|
sv = newSVpvf("Your vendor has not defined $package_sprintf_safe macro %" SVf
|
||
|
- ", used at %" COP_FILE_F " line %d\\n", sv,
|
||
|
- COP_FILE(cop), CopLINE(cop));
|
||
|
+ ", used at %" COP_FILE_F " line %" UVuf "\\n",
|
||
|
+ sv, COP_FILE(cop), (UV)CopLINE(cop));
|
||
|
} else
|
||
|
#endif
|
||
|
{
|
||
|
sv = newSVpvf("%"SVf" is not a valid $package_sprintf_safe macro at %"
|
||
|
- COP_FILE_F " line %d\\n", sv, COP_FILE(cop), CopLINE(cop));
|
||
|
+ COP_FILE_F " line %" UVuf "\\n",
|
||
|
+ sv, COP_FILE(cop), (UV)CopLINE(cop));
|
||
|
}
|
||
|
croak_sv(sv_2mortal(sv));
|
||
|
EOC
|
||
|
--
|
||
|
2.9.4
|
||
|
|