diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2002-04-03 17:37:02 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2002-04-03 17:37:02 (GMT) |
commit | 997e30d86a089f0224293edd6b77e6944a27c874 (patch) | |
tree | 2970ccb6566cadc3532064e66c51601b2ce6d138 /src/H5Sall.c | |
parent | 7ae00db7a4a4e8330245b15aa1e2fa1659cb9b1b (diff) | |
download | hdf5-997e30d86a089f0224293edd6b77e6944a27c874.zip hdf5-997e30d86a089f0224293edd6b77e6944a27c874.tar.gz hdf5-997e30d86a089f0224293edd6b77e6944a27c874.tar.bz2 |
[svn-r5139] Purpose:
Code cleanup
Description:
Clean up a few warnings on the SGI.
Platforms tested:
IRIX64 6.5 (modi4)
Diffstat (limited to 'src/H5Sall.c')
-rw-r--r-- | src/H5Sall.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/H5Sall.c b/src/H5Sall.c index e38607b..ea5eac5 100644 --- a/src/H5Sall.c +++ b/src/H5Sall.c @@ -588,7 +588,7 @@ H5S_all_write(H5F_t *f, const struct H5O_layout_t *layout, { H5S_hyper_span_t *file_span=NULL,*mem_span=NULL; /* Hyperslab span node */ const char *buf=(const char*)_buf; /* Get pointer to buffer */ - hsize_t mem_elmts,file_elmts; /* Number of elements in each dimension of selection */ + hsize_t file_elmts; /* Number of elements in each dimension of selection */ hssize_t file_off,mem_off; /* Offset (in elements) of selection */ hsize_t mem_size[H5O_LAYOUT_NDIMS]; /* Size of memory buffer */ hsize_t size[H5O_LAYOUT_NDIMS]; /* Size of selection */ @@ -609,11 +609,9 @@ printf("%s: check 1.0\n",FUNC); case H5S_SEL_HYPERSLABS: /* Check for a "regular" hyperslab selection */ if(mem_space->select.sel_info.hslab.diminfo != NULL) { - mem_elmts=mem_space->select.sel_info.hslab.diminfo[u].block; mem_off=mem_space->select.sel_info.hslab.diminfo[u].start; } /* end if */ else { - mem_elmts=(mem_span->high-mem_span->low)+1; mem_off=mem_span->low; mem_span=mem_span->down->head; } /* end else */ @@ -621,12 +619,10 @@ printf("%s: check 1.0\n",FUNC); break; case H5S_SEL_ALL: - mem_elmts=mem_space->extent.u.simple.size[u]; mem_off=0; break; case H5S_SEL_POINTS: - mem_elmts=1; mem_off=mem_space->select.sel_info.pnt_lst->head->pnt[u] +mem_space->select.offset[u]; break; |