diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2000-11-28 20:09:36 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2000-11-28 20:09:36 (GMT) |
commit | ac955b2ccc313066ff83d6e1a9a8bbff596b963c (patch) | |
tree | 71fbe1be17fbf62024b6fc67659f542916019982 | |
parent | bfb94f9db6b903a5ac745b1fb6ab44b63101cebc (diff) | |
download | hdf5-ac955b2ccc313066ff83d6e1a9a8bbff596b963c.zip hdf5-ac955b2ccc313066ff83d6e1a9a8bbff596b963c.tar.gz hdf5-ac955b2ccc313066ff83d6e1a9a8bbff596b963c.tar.bz2 |
[svn-r3013] Purpose:
Code cleanup
Description:
Cleaned up a few warnings which cropped up with different configure
switches.
Platforms tested:
FreeBSD 4.2 (hawkwind)
-rw-r--r-- | src/H5Odtype.c | 4 | ||||
-rw-r--r-- | src/H5Tconv.c | 7 |
2 files changed, 4 insertions, 7 deletions
diff --git a/src/H5Odtype.c b/src/H5Odtype.c index 5acec69..b18c138 100644 --- a/src/H5Odtype.c +++ b/src/H5Odtype.c @@ -201,10 +201,10 @@ H5O_dtype_decode_helper(H5F_t *f, const uint8_t **pp, H5T_t *dt) "memory allocation failed"); } for (i = 0; i < dt->u.compnd.nmembs; i++) { - intn ndims; /* Number of dimensions of the array field */ + intn ndims=0; /* Number of dimensions of the array field */ hsize_t dim[H5O_LAYOUT_NDIMS]; /* Dimensions of the array */ int perm[H5O_LAYOUT_NDIMS]; /* Dimension permutations */ - uintn perm_word; /* Dimension permutation information */ + uintn perm_word=0; /* Dimension permutation information */ H5T_t *array_dt; /* Temporary pointer to the array datatype */ H5T_t *temp_type; /* Temporary pointer to the field's datatype */ diff --git a/src/H5Tconv.c b/src/H5Tconv.c index 1c2eada..d47cfda 100644 --- a/src/H5Tconv.c +++ b/src/H5Tconv.c @@ -273,7 +273,6 @@ H5FL_BLK_DEFINE_STATIC(vlen_seq); long_long aligned; /*largest integer type, aligned */ \ hbool_t s_mv, d_mv; /*move data to align it? */ \ size_t dt_size=sizeof(DT); /*needed by CI_END macro */ \ - H5T_conv_hw_t *priv = cdata->priv; /*private data */ \ size_t s_stride, d_stride; /*src and dst strides */ \ int direction; /*1=left-to-right, -1=rt-to-lt */ \ \ @@ -389,10 +388,10 @@ H5FL_BLK_DEFINE_STATIC(vlen_seq); cdata->priv = H5MM_xfree(cdata->priv); /* Increment source alignment counter */ -# define CI_INC_SRC(s) if (s) priv->s_aligned += nelmts; +# define CI_INC_SRC(s) if (s) cdata->priv->s_aligned += nelmts; /* Increment destination alignment counter */ -# define CI_INC_DST(d) if (d) priv->d_aligned += nelmts; +# define CI_INC_DST(d) if (d) cdata->priv->d_aligned += nelmts; #else # define CI_PRINT_STATS(STYPE,DTYPE) /*void*/ # define CI_ALLOC_PRIV cdata->priv=NULL; @@ -5826,7 +5825,6 @@ H5T_conv_float_double (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, H5T_t *st, *dt; /*type descriptors */ hbool_t src_mv, dst_mv; /*align data? */ double aligned; /*aligned data */ - H5T_conv_hw_t *priv = cdata->priv; /*private data */ FUNC_ENTER (H5T_conv_float_double, FAIL); @@ -5947,7 +5945,6 @@ H5T_conv_double_float (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, H5T_t *st, *dt; /*type descriptors */ hbool_t src_mv, dst_mv; /*align data? */ double aligned; /*aligned data */ - H5T_conv_hw_t *priv = cdata->priv; /*private data */ FUNC_ENTER (H5T_conv_double_float, FAIL); |