summaryrefslogtreecommitdiffstats
path: root/hl
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2013-01-10 16:04:09 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2013-01-10 16:04:09 (GMT)
commit7b895e1dd8c9fdba0d94bf4100a1be77ee05a64b (patch)
tree67653c09866d7342a6b2caf81887b872e2e4ad81 /hl
parent8eab66f667f61e076809e849bd03098569dd6cfc (diff)
downloadhdf5-7b895e1dd8c9fdba0d94bf4100a1be77ee05a64b.zip
hdf5-7b895e1dd8c9fdba0d94bf4100a1be77ee05a64b.tar.gz
hdf5-7b895e1dd8c9fdba0d94bf4100a1be77ee05a64b.tar.bz2
[svn-r23149] I put more condition checks with macro when DEFLATE filter is disabled.
Tested on koala.
Diffstat (limited to 'hl')
-rw-r--r--hl/test/test_dset_opt.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/hl/test/test_dset_opt.c b/hl/test/test_dset_opt.c
index a585292..9a0ffb0 100644
--- a/hl/test/test_dset_opt.c
+++ b/hl/test/test_dset_opt.c
@@ -90,6 +90,7 @@ const H5Z_class2_t H5Z_BOGUS2[1] = {{
*
*-------------------------------------------------------------------------
*/
+#ifdef H5_HAVE_FILTER_DEFLATE
static int
test_direct_chunk_write (hid_t file)
{
@@ -332,6 +333,7 @@ error:
return 1;
}
+#endif /* H5_HAVE_FILTER_DEFLATE */
/*-------------------------------------------------------------------------
* Function: test_skip_compress_write1
@@ -499,7 +501,7 @@ filter_bogus1(unsigned int flags, size_t UNUSED cd_nelmts,
size_t *buf_size, void **buf)
{
int *int_ptr=(int *)*buf; /* Pointer to the data values */
- size_t buf_left=*buf_size; /* Amount of data buffer left to process */
+ ssize_t buf_left=*buf_size; /* Amount of data buffer left to process */
if(flags & H5Z_FLAG_REVERSE) { /* read */
/* Substract the "add on" value to all the data values */
@@ -536,7 +538,7 @@ filter_bogus2(unsigned int flags, size_t UNUSED cd_nelmts,
size_t *buf_size, void **buf)
{
int *int_ptr=(int *)*buf; /* Pointer to the data values */
- size_t buf_left=*buf_size; /* Amount of data buffer left to process */
+ ssize_t buf_left=*buf_size; /* Amount of data buffer left to process */
if(flags & H5Z_FLAG_REVERSE) { /* read */
/* Substract the "add on" value to all the data values */
@@ -948,7 +950,6 @@ test_invalid_parameters(hid_t file)
unsigned filter_mask = 0;
int direct_buf[CHUNK_NX][CHUNK_NY];
- int check_chunk[CHUNK_NX][CHUNK_NY];
hsize_t offset[2] = {0, 0};
size_t buf_size = CHUNK_NX*CHUNK_NY*sizeof(int);
int aggression = 9; /* Compression aggression setting */