summaryrefslogtreecommitdiffstats
path: root/src/H5A.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2001-11-02 19:46:36 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2001-11-02 19:46:36 (GMT)
commit5122df335cc2627bfdd85e3fcff8bd1731e8c4ae (patch)
treeb2f22fe06fb4fde61e7113b9aee17597a9fedd20 /src/H5A.c
parentec59e5f52aa06ed8267f8df2281f322fb6b9ed78 (diff)
downloadhdf5-5122df335cc2627bfdd85e3fcff8bd1731e8c4ae.zip
hdf5-5122df335cc2627bfdd85e3fcff8bd1731e8c4ae.tar.gz
hdf5-5122df335cc2627bfdd85e3fcff8bd1731e8c4ae.tar.bz2
[svn-r4584]
Purpose: Switch from old property list to new generic property list. Description: Mainly changed H5Pcreat, H5Pclose, H5Pcopy. Platforms tested: IRIX64 6.5, FreeBSD, SunOS 5.7.
Diffstat (limited to 'src/H5A.c')
-rw-r--r--src/H5A.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/H5A.c b/src/H5A.c
index 6fc2d54..4b21749 100644
--- a/src/H5A.c
+++ b/src/H5A.c
@@ -150,7 +150,7 @@ H5A_term_interface(void)
--------------------------------------------------------------------------*/
hid_t
H5Acreate(hid_t loc_id, const char *name, hid_t type_id, hid_t space_id,
- hid_t plist_id)
+ hid_t UNUSED plist_id)
{
H5G_entry_t *ent = NULL;
H5T_t *type = NULL;
@@ -180,12 +180,6 @@ H5Acreate(hid_t loc_id, const char *name, hid_t type_id, hid_t space_id,
NULL == (space = H5I_object(space_id))) {
HRETURN_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a data space");
}
- if (H5P_DEFAULT!=plist_id &&
- (H5P_DATASET_CREATE != H5P_get_class(plist_id) ||
- NULL == H5I_object(plist_id))) {
- HRETURN_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL,
- "not a dataset creation property list");
- }
/* Go do the real work for attaching the attribute to the dataset */
if ((ret_value=H5A_create(ent,name,type,space))<0) {