mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-17 16:10:24 +08:00
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));
This commit is contained in:
parent
f796cd3c78
commit
cd1d772f35
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user