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