summaryrefslogtreecommitdiffstats
path: root/tools/h5diff
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2006-12-01 18:38:34 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2006-12-01 18:38:34 (GMT)
commit2ab4d2d63ac3a728269168ff82c9a21240ca2aff (patch)
treed50a496df0339bc0171762e59b7049174a5033fd /tools/h5diff
parent4a97af823585ea61212a0f51f817be7480dfba9b (diff)
downloadhdf5-2ab4d2d63ac3a728269168ff82c9a21240ca2aff.zip
hdf5-2ab4d2d63ac3a728269168ff82c9a21240ca2aff.tar.gz
hdf5-2ab4d2d63ac3a728269168ff82c9a21240ca2aff.tar.bz2
[svn-r13009]
more compiler warning ../../../hdf5/tools/h5diff/h5diffgentest.c:111: warning: passing arg 1 of `test_hyperslab' discards qualifiers from pointer target type
Diffstat (limited to 'tools/h5diff')
-rw-r--r--tools/h5diff/h5diffgentest.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/h5diff/h5diffgentest.c b/tools/h5diff/h5diffgentest.c
index e7cff69..4b504ac 100644
--- a/tools/h5diff/h5diffgentest.c
+++ b/tools/h5diff/h5diffgentest.c
@@ -75,7 +75,7 @@ static int test_types(const char *fname);
static int test_datatypes(const char *fname);
static int test_attributes(const char *fname,int make_diffs);
static int test_datasets(const char *fname,int make_diffs);
-static int test_hyperslab(char *fname,int make_diffs);
+static int test_hyperslab(const char *fname,int make_diffs);
/* called by test_attributes() and test_datasets() */
static void write_attr_in(hid_t loc_id,const char* dset_name,hid_t fid,int make_diffs);
static void write_dset_in(hid_t loc_id,const char* dset_name,hid_t fid,int make_diffs);
@@ -2374,15 +2374,15 @@ void gen_datareg(hid_t fid,
*-------------------------------------------------------------------------
*/
static
-int test_hyperslab(char *fname,
+int test_hyperslab(const char *fname,
int make_diffs /* flag to modify data buffers */)
{
- hid_t did;
- hid_t fid;
- hid_t f_sid;
- hid_t m_sid;
- hid_t tid;
- hid_t dcpl;
+ hid_t did=-1;
+ hid_t fid=-1;
+ hid_t f_sid=-1;
+ hid_t m_sid=-1;
+ hid_t tid=-1;
+ hid_t dcpl=-1;
hsize_t dims[1]={GBLL}; /* dataset dimensions */
hsize_t hs_size[1]={GBLL/(1024*1024)}; /* hyperslab dimensions */
hsize_t chunk_dims[1]={GBLL/1024}; /* chunk dimensions */