diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2019-12-18 21:08:40 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:20:21 (GMT) |
commit | 344f4139d73c6924290c6928e7245ea30792636f (patch) | |
tree | c152a987d24dbb111d4aaf0469d64fbf064f6394 /test/dsets.c | |
parent | def01d7676af7ff26b38ac9b956a411b9b98e4e2 (diff) | |
download | hdf5-344f4139d73c6924290c6928e7245ea30792636f.zip hdf5-344f4139d73c6924290c6928e7245ea30792636f.tar.gz hdf5-344f4139d73c6924290c6928e7245ea30792636f.tar.bz2 |
Fix compile error - declaration after executable statement
Diffstat (limited to 'test/dsets.c')
-rw-r--r-- | test/dsets.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/dsets.c b/test/dsets.c index d017ff3..db0af35 100644 --- a/test/dsets.c +++ b/test/dsets.c @@ -7065,6 +7065,7 @@ static void make_random_offset_and_increment(long nelts, long *offsetp, long *incp) { long inc; + const long maxinc; HDassert(0 < nelts); @@ -7073,7 +7074,7 @@ make_random_offset_and_increment(long nelts, long *offsetp, long *incp) /* `maxinc` is chosen so that for any `x` in [0, nelts - 1], * `x + maxinc` does not overflow a long. */ - const long maxinc = MIN(nelts - 1, LONG_MAX - nelts); + maxinc = MIN(nelts - 1, LONG_MAX - nelts); /* Choose a random number in [1, nelts - 1]. If its greatest divisor * in common with `nelts` is 1, then it will "generate" the additive ring @@ -13132,7 +13133,7 @@ test_versionbounds(void) return FAIL; } /* end test_versionbounds() */ - + /*----------------------------------------------------------------------------- * Function: test_object_header_minimization_dcpl * |