mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
Fixes C++ warnings when passing hsize_t values to printf in test code (#745)
This commit is contained in:
+16
-15
@@ -179,9 +179,9 @@ test_array_compound_array()
|
||||
// Check the array dimensions
|
||||
for (ii = 0; ii < ndims; ii++)
|
||||
if (rdims1[ii] != tdims1[ii]) {
|
||||
TestErrPrintf(
|
||||
"Array dimension information doesn't match!, rdims1[%d]=%lld, tdims1[%d]=%lld\n", ii,
|
||||
rdims1[ii], ii, tdims1[ii]);
|
||||
TestErrPrintf("Array dimension information doesn't match!, rdims1[%d]=%" PRIuHSIZE
|
||||
", tdims1[%d]=%" PRIuHSIZE "\n",
|
||||
ii, rdims1[ii], ii, tdims1[ii]);
|
||||
continue;
|
||||
} // end if
|
||||
|
||||
@@ -198,9 +198,9 @@ test_array_compound_array()
|
||||
// Check the array dimensions
|
||||
for (ii = 0; ii < ndims; ii++)
|
||||
if (rdims1[ii] != tdims1[ii]) {
|
||||
TestErrPrintf(
|
||||
"Array dimension information doesn't match!, rdims1[%d]=%lld, tdims1[%d]=%lld\n", ii,
|
||||
rdims1[ii], ii, tdims1[ii]);
|
||||
TestErrPrintf("Array dimension information doesn't match!, rdims1[%d]=%" PRIuHSIZE
|
||||
", tdims1[%d]=%" PRIuHSIZE "\n",
|
||||
ii, rdims1[ii], ii, tdims1[ii]);
|
||||
continue;
|
||||
} // end if
|
||||
|
||||
@@ -249,9 +249,9 @@ test_array_compound_array()
|
||||
// Check the array dimensions
|
||||
for (ii = 0; ii < ndims; ii++)
|
||||
if (rdims1[ii] != tdims1[ii]) {
|
||||
TestErrPrintf(
|
||||
"Array dimension information doesn't match!, rdims1[%d]=%lld, tdims1[%d]=%lld\n", ii,
|
||||
rdims1[ii], ii, tdims1[ii]);
|
||||
TestErrPrintf("Array dimension information doesn't match!, rdims1[%d]=%" PRIuHSIZE
|
||||
", tdims1[%d]=%" PRIuHSIZE "\n",
|
||||
ii, rdims1[ii], ii, tdims1[ii]);
|
||||
continue;
|
||||
} // end if
|
||||
|
||||
@@ -266,8 +266,9 @@ test_array_compound_array()
|
||||
for (idxi = 0; idxi < SPACE1_DIM1; idxi++) {
|
||||
for (idxj = 0; idxj < ARRAY1_DIM1; idxj++) {
|
||||
if (wdata[idxi][idxj].i != rdata[idxi][idxj].i) {
|
||||
TestErrPrintf("Array data information doesn't match!, wdata[%lld][%lld].i=%d, "
|
||||
"rdata[%lld][%lld].i=%d\n",
|
||||
TestErrPrintf("Array data information doesn't match!, wdata[%" PRIuHSIZE "][%" PRIuHSIZE
|
||||
"].i=%d, "
|
||||
"rdata[%" PRIuHSIZE "][%" PRIuHSIZE "].i=%d\n",
|
||||
idxi, idxj, wdata[idxi][idxj].i, idxi, idxj, rdata[idxi][idxj].i);
|
||||
continue;
|
||||
} // end if
|
||||
@@ -459,11 +460,11 @@ test_array_info()
|
||||
// Check the array dimensions
|
||||
for (ii = 0; ii < ndims; ii++)
|
||||
if (rdims1[ii] != tdims1[ii]) {
|
||||
TestErrPrintf(
|
||||
"Array dimension information doesn't match!, rdims1[%d]=%llu, tdims1[%d]=z%llu\n", ii,
|
||||
rdims1[ii], ii, tdims1[ii]);
|
||||
TestErrPrintf("Array dimension information doesn't match!, rdims1[%d]=%" PRIuHSIZE
|
||||
", tdims1[%d]=%" PRIuHSIZE "\n",
|
||||
ii, rdims1[ii], ii, tdims1[ii]);
|
||||
continue;
|
||||
} // end if
|
||||
}
|
||||
}
|
||||
|
||||
// Close all
|
||||
|
||||
Reference in New Issue
Block a user