This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
File-DosGlob: silence some compiler warnings
authorDavid Mitchell <davem@iabyn.com>
Tue, 12 Nov 2013 16:00:35 +0000 (16:00 +0000)
committerDavid Mitchell <davem@iabyn.com>
Wed, 13 Nov 2013 10:38:40 +0000 (10:38 +0000)
ext/File-DosGlob/DosGlob.xs
ext/File-DosGlob/lib/File/DosGlob.pm

index cbd9178..6123b75 100644 (file)
@@ -22,7 +22,7 @@ glob_ophook(pTHX_ OP *o)
     if (!MY_CXT.x_DG_ENTRIES)
        MY_CXT.x_DG_ENTRIES = get_hv("File::DosGlob::entries", 0);
     if (MY_CXT.x_DG_ENTRIES)
-       hv_delete(MY_CXT.x_DG_ENTRIES, (char *)&o, sizeof(OP *),G_DISCARD);
+       (void)hv_delete(MY_CXT.x_DG_ENTRIES, (char *)&o, sizeof(OP *),G_DISCARD);
     if (MY_CXT.x_DG_OLD_OPHOOK) MY_CXT.x_DG_OLD_OPHOOK(aTHX_ o);
   }
 }
@@ -45,6 +45,7 @@ BOOT:
 SV *
 _callsite(...)
     CODE:
+        PERL_UNUSED_VAR(items);
        RETVAL = newSVpvn(
                   (char *)&cxstack[cxstack_ix].blk_sub.retop, sizeof(OP *)
                 );
index 1c5ef53..9d40a36 100644 (file)
@@ -6,7 +6,7 @@
 
 package File::DosGlob;
 
-our $VERSION = '1.11';
+our $VERSION = '1.12';
 use strict;
 use warnings;