summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2023-02-25 13:40:02 +0100
committerYves Orton <demerphq@gmail.com>2023-02-26 00:31:44 +0800
commit72aa2f60a2e32d240f312d3585bd48877dffe36f (patch)
tree6bba7ebb5e15789affc1039224aa54f2416d18c3 /ext
parent9888ef92c94011696dd8a2ff87209296b2baebaa (diff)
downloadperl-72aa2f60a2e32d240f312d3585bd48877dffe36f.tar.gz
APITest.xs - silence build warning under 32 bit clang
Silence build warning with 32 bit build under clang. Also bump version. APItest.xs:7614:24: warning: format specifies type 'unsigned int' but the argument has type 'U32' (aka 'unsigned long') [-Wformat] i, hash32, vectors_32[i]); ^~~~~~ ../../fakesdio.h:64:50: note: expanded from macro 'printf' #define printf(fmt,args...) PerlIO_stdoutf(fmt,##args) ~~~ ^~~~ APItest.xs:7614:32: warning: format specifies type 'unsigned int' but the argument has type 'U32' (aka 'unsigned long') [-Wformat] i, hash32, vectors_32[i]); ^~~~~~~~~~~~~ ../../fakesdio.h:64:50: note: expanded from macro 'printf' #define printf(fmt,args...) PerlIO_stdoutf(fmt,##args) ~~~ ^~~~ APItest.xs:7835:24: warning: format specifies type 'unsigned int' but the argument has type 'U32' (aka 'unsigned long') [-Wformat] i, hash32, vectors_32[i]); ^~~~~~ ../../fakesdio.h:64:50: note: expanded from macro 'printf' #define printf(fmt,args...) PerlIO_stdoutf(fmt,##args) ~~~ ^~~~ APItest.xs:7835:32: warning: format specifies type 'unsigned int' but the argument has type 'U32' (aka 'unsigned long') [-Wformat] i, hash32, vectors_32[i]); ^~~~~~~~~~~~~ ../../fakesdio.h:64:50: note: expanded from macro 'printf' #define printf(fmt,args...) PerlIO_stdoutf(fmt,##args) ~~~ ^~~~ 4 warnings generated.
Diffstat (limited to 'ext')
-rw-r--r--ext/XS-APItest/APItest.pm2
-rw-r--r--ext/XS-APItest/APItest.xs12
2 files changed, 7 insertions, 7 deletions
diff --git a/ext/XS-APItest/APItest.pm b/ext/XS-APItest/APItest.pm
index fb14f78dd5..5e8f716a94 100644
--- a/ext/XS-APItest/APItest.pm
+++ b/ext/XS-APItest/APItest.pm
@@ -4,7 +4,7 @@ use strict;
use warnings;
use Carp;
-our $VERSION = '1.30';
+our $VERSION = '1.31';
require XSLoader;
diff --git a/ext/XS-APItest/APItest.xs b/ext/XS-APItest/APItest.xs
index a7f1d5f011..4a0aac0c8a 100644
--- a/ext/XS-APItest/APItest.xs
+++ b/ext/XS-APItest/APItest.xs
@@ -7609,9 +7609,9 @@ test_siphash24()
if (hash32 != vectors_32[i]) {
failed++;
printf( "Error in 32 bit result on test vector of length %d for siphash24\n"
- " have: 0x%08x\n"
- " want: 0x%08x\n",
- i, hash32, vectors_32[i]);
+ " have: 0x%08" UVxf "\n"
+ " want: 0x%08" UVxf "\n",
+ i, (UV)hash32, (UV)vectors_32[i]);
}
}
RETVAL= failed;
@@ -7830,9 +7830,9 @@ test_siphash13()
if (hash32 != vectors_32[i]) {
failed++;
printf( "Error in 32 bit result on test vector of length %d for siphash13\n"
- " have: 0x%08x\n"
- " want: 0x%08x\n",
- i, hash32, vectors_32[i]);
+ " have: 0x%08" UVxf"\n"
+ " want: 0x%08" UVxf"\n",
+ i, (UV)hash32, (UV)vectors_32[i]);
}
}
RETVAL= failed;