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