summaryrefslogtreecommitdiffstats
path: root/src
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 /src
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 'src')
-rw-r--r--src/H5Pfcpl.c72
-rw-r--r--src/H5SMtest.c2
2 files changed, 1 insertions, 73 deletions
diff --git a/src/H5Pfcpl.c b/src/H5Pfcpl.c
index 1b49360..35171e6 100644
--- a/src/H5Pfcpl.c
+++ b/src/H5Pfcpl.c
@@ -683,78 +683,6 @@ done:
/*-------------------------------------------------------------------------
- * Function: H5Pset_shared_mesgs
- *
- * Purpose: Configure implicity shared object header message settings
- * for this file.
- *
- * NINDEXES is the number of indexes for this file; it should
- * be between 0 and H5SM_MAX_NINDEXES. If nindexes is 0,
- * SOHMs will be disabled for this file.
- *
- * MESG_TYPE_FLAGS is an array of message type flags (using
- * the values defined in H5SMpublic.h) with NINDEXES entries.
- * These flags determine which types of message are stored in
- * which index. Any types of message that are not assigned
- * to an index will not be shared in this file. Each message
- * type should be assigned to only one index, though each
- * index can store more than one type of message.
- *
- * Return: Non-negative on success/Negative on failure
- *
- * Programmer: James Laird
- * Wednesday, April 5, 2006
- *
- *-------------------------------------------------------------------------
- */
-herr_t
-H5Pset_shared_mesgs(hid_t plist_id, unsigned nindexes, const unsigned mesg_type_flags[])
-{
- unsigned i;
- unsigned type_flags[H5SM_MAX_NINDEXES]; /* Full-sized array */
- H5P_genplist_t *plist; /* Property list pointer */
- unsigned flags_used; /* type flags already specified.
- * Used to make sure a flag isn't used twice.
- */
- herr_t ret_value = SUCCEED; /* return value */
-
- FUNC_ENTER_API(H5Pset_shared_mesgs, FAIL)
- H5TRACE3("e", "iIu*Iu", plist_id, nindexes, mesg_type_flags);
-
- /* Check arguments */
- if(nindexes > H5SM_MAX_NINDEXES)
- HGOTO_ERROR(H5E_ARGS, H5E_BADRANGE, FAIL, "number of indexes is too large");
- if(nindexes > 0 && !mesg_type_flags)
- HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "no type flags specified");
-
- /* Get the plist structure */
- if(NULL == (plist = H5P_object_verify(plist_id,H5P_FILE_CREATE)))
- HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "can't find object for ID");
-
- flags_used = H5O_MESG_NONE_FLAG;
- for(i = 0; i < nindexes; i++) {
- if(mesg_type_flags[i] == H5O_MESG_NONE_FLAG)
- HGOTO_ERROR(H5E_ARGS, H5E_BADRANGE, FAIL, "at least one flag must be set");
- if(mesg_type_flags[i] != (mesg_type_flags[i] & H5O_MESG_ALL_FLAG))
- HGOTO_ERROR(H5E_ARGS, H5E_BADRANGE, FAIL, "invalid mesg type flag set");
- if(mesg_type_flags[i] & flags_used)
- HGOTO_ERROR(H5E_ARGS, H5E_BADRANGE, FAIL, "flag set for two different indexes");
- type_flags[i] = mesg_type_flags[i]; /* Store message types dimensions */
- flags_used |= mesg_type_flags[i]; /* Make sure the user doesn't re-use a flag */
- } /* end for */
-
- /* Set properties in property list */
- if(H5P_set(plist, H5F_CRT_SHMSG_NINDEXES_NAME, &nindexes) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "can't set number of SOHM indexes");
- if(H5P_set(plist, H5F_CRT_SHMSG_INDEX_TYPES_NAME, type_flags) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "can't set type flags for indexes");
-
-done:
- FUNC_LEAVE_API(ret_value)
-} /* end H5Pset_shared_mesgs() */
-
-
-/*-------------------------------------------------------------------------
* Function: H5Pset_shared_mesg_nindexes
*
* Purpose: Set the number of Shared Object Header Message (SOHM)
diff --git a/src/H5SMtest.c b/src/H5SMtest.c
index 03526bb..d2ca5d3 100644
--- a/src/H5SMtest.c
+++ b/src/H5SMtest.c
@@ -114,7 +114,7 @@ H5SM_get_refcount_test(H5F_t *f, hid_t dxpl_id, unsigned type_id,
H5HF_t *fheap = NULL; /* Fractal heap that contains shared messages */
H5SM_master_table_t *table = NULL; /* SOHM master table */
H5SM_list_t *list = NULL; /* SOHM index list for message type (if in list form) */
- H5SM_index_header_t *header; /* Index header for message type */
+ H5SM_index_header_t *header=NULL; /* Index header for message type */
H5SM_mesg_key_t key; /* Key for looking up message */
H5SM_fh_ud_gh_t udata; /* User data for fractal heap 'op' callback */
H5SM_sohm_t message; /* Record for shared message */