mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-21 01:04:10 +08:00
[svn-r15556] Check options for H5Pset_alignment.
threshold is zero default (a valid value) but zero is not a valid alignment tested: windows, linux
This commit is contained in:
parent
5d49cf770a
commit
cf05c2d762
@ -430,22 +430,15 @@ static int check_options(pack_opt_t *options)
|
||||
|
||||
|
||||
/*--------------------------------------------------------------------------------
|
||||
* verify alignment options; both threshold and alignment sizes must be present
|
||||
* verify alignment options; threshold is zero default but alignment not
|
||||
*---------------------------------------------------------------------------------
|
||||
*/
|
||||
#if 0
|
||||
if ( options->alignment != 0 && options->threshold == 0 )
|
||||
{
|
||||
error_msg(progname, "threshold for H5Pset_alignment missing\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
if ( options->alignment == 0 && options->threshold != 0 )
|
||||
{
|
||||
error_msg(progname, "alignment for H5Pset_alignment missing\n");
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user