summaryrefslogtreecommitdiff
path: root/cpan/ExtUtils-Constant
diff options
context:
space:
mode:
authorRobin Barker <RMBarker@cpan.org>2012-12-17 18:20:14 +0100
committerNicholas Clark <nick@ccl4.org>2017-08-08 15:18:29 +0200
commit357c35e6f18e65f372e7a1b22ee39a3c7c9e5810 (patch)
tree03d86d47b2fa9c48921a51b7da393c22ab720239 /cpan/ExtUtils-Constant
parente2e878313e77becb4fe3ad805fdf68208421676f (diff)
downloadperl-357c35e6f18e65f372e7a1b22ee39a3c7c9e5810.tar.gz
Avoid compiler warnings due to mismatched types in *printf format strings.
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
Diffstat (limited to 'cpan/ExtUtils-Constant')
-rw-r--r--cpan/ExtUtils-Constant/lib/ExtUtils/Constant/ProxySubs.pm7
1 files 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 545d3221a0..c7e6d051e9 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