summaryrefslogtreecommitdiffstats
path: root/hl
diff options
context:
space:
mode:
authorJames Laird <jlaird@hdfgroup.org>2007-01-05 17:59:04 (GMT)
committerJames Laird <jlaird@hdfgroup.org>2007-01-05 17:59:04 (GMT)
commitec1b0dfda6ac7049f1eeb32fbb93ebd92ccfd342 (patch)
treec0323be7c0a8d71245456cd674cd657924795db7 /hl
parent75121771bbd468e333419a65511164a1099668a4 (diff)
downloadhdf5-ec1b0dfda6ac7049f1eeb32fbb93ebd92ccfd342.zip
hdf5-ec1b0dfda6ac7049f1eeb32fbb93ebd92ccfd342.tar.gz
hdf5-ec1b0dfda6ac7049f1eeb32fbb93ebd92ccfd342.tar.bz2
[svn-r13108] Cleaned up some warnings.
Tested on kagiso; I have another checkin coming, after which I'll run more extensive tests. Changes are pretty minor.
Diffstat (limited to 'hl')
-rw-r--r--hl/src/H5PT.c5
-rw-r--r--hl/test/test_packet.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/hl/src/H5PT.c b/hl/src/H5PT.c
index d1bb1fc..cf400a1 100644
--- a/hl/src/H5PT.c
+++ b/hl/src/H5PT.c
@@ -148,6 +148,7 @@ hid_t H5PTcreate_fl ( hid_t loc_id,
return H5I_INVALID_HID;
}
+#ifdef H5_VLPT_ENABLED
/*-------------------------------------------------------------------------
* Function: H5PTcreate_vl
*
@@ -195,6 +196,7 @@ out:
H5PTclose(ret_value);
return H5I_BADID;
}
+#endif /* H%_VLPT_ENABLED */
/*-------------------------------------------------------------------------
* Function: H5PTopen
@@ -713,6 +715,7 @@ herr_t H5PTis_valid(hid_t table_id)
return 0;
}
+#ifdef H5_VLPT_ENABLED
/*-------------------------------------------------------------------------
* Function: H5PTis_varlen
*
@@ -815,3 +818,5 @@ out:
H5E_END_TRY
return -1;
}
+
+#endif /* H5_VLPT_ENABLED */
diff --git a/hl/test/test_packet.c b/hl/test/test_packet.c
index 3445163..4268a08 100644
--- a/hl/test/test_packet.c
+++ b/hl/test/test_packet.c
@@ -63,6 +63,8 @@ static particle_t testPart[NRECORDS] = {
/*-------------------------------------------------------------------------
* function that compares one particle
+ * Comparing floating point should be safe here; HDF5 should store the
+ * fields verbatim and not lose any bits. -JML
*-------------------------------------------------------------------------
*/
static int cmp_par(size_t i, size_t j, particle_t *rbuf, particle_t *wbuf )