[svn-r3013] Purpose:

Code cleanup
Description:
    Cleaned up a few warnings which cropped up with different configure
    switches.
Platforms tested:
    FreeBSD 4.2 (hawkwind)
This commit is contained in:
Quincey Koziol 2000-11-28 15:09:36 -05:00
parent bfb94f9db6
commit ac955b2ccc
2 changed files with 4 additions and 7 deletions

View File

@ -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 */

View File

@ -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);