summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-09-17 21:00:27 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-09-17 21:00:27 (GMT)
commitcd1d772f353b70415b150ae2e85e9d184191f7f0 (patch)
treea37e0d1f63490c86fcc858a813ee722952480c4f
parentf796cd3c7834aa1cbd20289510ffb01ed92b00a7 (diff)
downloadhdf5-cd1d772f353b70415b150ae2e85e9d184191f7f0.zip
hdf5-cd1d772f353b70415b150ae2e85e9d184191f7f0.tar.gz
hdf5-cd1d772f353b70415b150ae2e85e9d184191f7f0.tar.bz2
Test the format string "ll" before "l", "L", and "q", like the
./configure script does. This ought to fix the compilation failure in test/dt_arith.c that Allen told me about: /home/buildbot/bb-workers/centos8-vm01/hdf5trunk-StdShar-code-centos8/build/hdfsrc/test/dt_arith.c: In function ‘test_conv_int_1’: /home/buildbot/bb-workers/centos8-vm01/hdf5trunk-StdShar-code-centos8/build/hdfsrc/test/dt_arith.c:2500:34: error: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘long long int’ [-Werror=format=] HDfprintf(stdout," %29"H5_PRINTF_LL_WIDTH"d\n", *((long long*)aligned));
-rw-r--r--config/cmake_ext_mod/HDFTests.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/cmake_ext_mod/HDFTests.c b/config/cmake_ext_mod/HDFTests.c
index 31a568a..bed9444 100644
--- a/config/cmake_ext_mod/HDFTests.c
+++ b/config/cmake_ext_mod/HDFTests.c
@@ -178,7 +178,7 @@ int DebugReport(int reportType, char* message, int* returnValue)
int main(void)
{
- char *llwidthArgs[] = { "I64", "l64", "l", "L", "q", "ll", NULL };
+ char *llwidthArgs[] = { "I64", "l64", "ll", "l", "L", "q", NULL };
char *s = malloc(128);
char **currentArg = NULL;
LL_TYPE x = (LL_TYPE)1048576 * (LL_TYPE)1048576;