This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Silence build warnings in universal.c
authorJerry D. Hedden <jdhedden@cpan.org>
Wed, 21 May 2008 13:15:28 +0000 (09:15 -0400)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Fri, 23 May 2008 06:15:37 +0000 (06:15 +0000)
From: "Jerry D. Hedden" <jdhedden@cpan.org>
Message-ID: <1ff86f510805211015m5c59bbf5wf3a992e776b1c4c4@mail.gmail.com>

p4raw-id: //depot/perl@33910

universal.c

index 008b593..84d13fc 100644 (file)
@@ -329,7 +329,7 @@ Perl_croak_xs_usage(pTHX_ const CV *const cv, const char *const params)
            Perl_croak(aTHX_ "Usage: %s(%s)", gvname, params);
     } else {
        /* Pants. I don't think that it should be possible to get here. */
-       Perl_croak(aTHX_ "Usage: CODE(0x%"UVxf")(%s)", (UV)cv, params);
+       Perl_croak(aTHX_ "Usage: CODE(0x%"UVxf")(%s)", PTR2UV(cv), params);
     }
 }
 
@@ -1065,6 +1065,7 @@ XS(XS_Internals_HvREHASH) /* Subject to change  */
 {
     dVAR;
     dXSARGS;
+    PERL_UNUSED_ARG(cv);
     if (SvROK(ST(0))) {
        const HV * const hv = (HV *) SvRV(ST(0));
        if (items == 1 && SvTYPE(hv) == SVt_PVHV) {