[svn-r8224] Purpose:

bug fix

Description:
I introduced some #ifdef <have_filter> on the check in yesterday on the places
that generated datasets, that had no corresponding on the read part.
this caused failures in the configurations  where a filter was not defined

Solution:
just removed the #ifdefs

Platforms tested:
linux

Misc. update:
This commit is contained in:
Pedro Vicente Nunes 2004-02-26 09:32:21 -05:00
parent 40357176e3
commit b20cf81c5c

View File

@ -108,19 +108,16 @@ int make_filters(hid_t loc_id)
* SZIP
*-------------------------------------------------------------------------
*/
#ifdef H5_HAVE_FILTER_SZIP
/* set szip data */
if(H5Pset_szip (dcpl,szip_options_mask,szip_pixels_per_block)<0)
goto out;
if (make_dset(loc_id,"dset_szip",sid,dcpl,buf)<0)
goto out;
#endif
/*-------------------------------------------------------------------------
* GZIP
*-------------------------------------------------------------------------
*/
#ifdef H5_HAVE_FILTER_DEFLATE
/* remove the filters from the dcpl */
if (H5Premove_filter(dcpl,H5Z_FILTER_ALL)<0)
goto out;
@ -129,7 +126,6 @@ int make_filters(hid_t loc_id)
goto out;
if (make_dset(loc_id,"dset_gzip",sid,dcpl,buf)<0)
goto out;
#endif
/*-------------------------------------------------------------------------
@ -171,11 +167,9 @@ int make_filters(hid_t loc_id)
/* set the checksum filter */
if (H5Pset_fletcher32(dcpl)<0)
goto out;
#ifdef H5_HAVE_FILTER_SZIP
/* set szip data */
if(H5Pset_szip (dcpl,szip_options_mask,szip_pixels_per_block)<0)
goto out;
#endif
if (make_dset(loc_id,"dset_all",sid,dcpl,buf)<0)
goto out;