This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
XS-APItest: Silence a compiler warning
authorKarl Williamson <khw@cpan.org>
Sat, 18 Jul 2020 03:18:37 +0000 (21:18 -0600)
committerKarl Williamson <khw@cpan.org>
Sat, 18 Jul 2020 03:30:32 +0000 (21:30 -0600)
This gives an unused variable warning on 32 bit platforms

ext/XS-APItest/APItest.pm
ext/XS-APItest/APItest.xs

index 8d0a7fd..f45fcba 100644 (file)
@@ -5,7 +5,7 @@ use strict;
 use warnings;
 use Carp;
 
-our $VERSION = '1.09';
+our $VERSION = '1.10';
 
 require XSLoader;
 
index 1aab7a7..5848abc 100644 (file)
@@ -6911,6 +6911,7 @@ u8_to_u16_le(SV *sv, STRLEN ofs)
                 u64= U8TO64_LE(pv+ofs);
                 RETVAL= (UV)u64;
 #else
+                PERL_UNUSED_VAR(u64);
                 croak("not a 64 bit perl IVSIZE=%d",IVSIZE);
 #endif
                 break;