summaryrefslogtreecommitdiffstats
path: root/hl/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-10-09 03:51:03 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-10-09 03:51:03 (GMT)
commit25d1056dbff92a7662ee73c67596d24906530dbc (patch)
treed98bc79a6ffdcf85f4b1f375523991070505acb7 /hl/src
parent6a18d20b406b2285fbf1d3f6c830b8147635597b (diff)
downloadhdf5-25d1056dbff92a7662ee73c67596d24906530dbc.zip
hdf5-25d1056dbff92a7662ee73c67596d24906530dbc.tar.gz
hdf5-25d1056dbff92a7662ee73c67596d24906530dbc.tar.bz2
[svn-r12734] Description:
Clean up some compiler warnings. Tested on: FreeBSD/32 4.11 (sleipnir) w/threadsafe Linux/32 2.4 (heping) w/FORTRAN & C++ Linux/64 2.4 (mir) w/enable-1.6-compat
Diffstat (limited to 'hl/src')
-rw-r--r--hl/src/H5LT.c2
-rw-r--r--hl/src/H5LTparse.c4
-rw-r--r--hl/src/H5LTparse.y4
3 files changed, 5 insertions, 5 deletions
diff --git a/hl/src/H5LT.c b/hl/src/H5LT.c
index 5db6cd4..1ebcc5f 100644
--- a/hl/src/H5LT.c
+++ b/hl/src/H5LT.c
@@ -2617,7 +2617,7 @@ next:
/* Get array information */
if((ndims = H5Tget_array_ndims(dtype))<0)
goto out;
- if(H5Tget_array_dims(dtype, dims, NULL)<0)
+ if(H5Tget_array_dims(dtype, dims, NULL) < 0)
goto out;
/* Print array dimensions */
diff --git a/hl/src/H5LTparse.c b/hl/src/H5LTparse.c
index 32258d0..e9d2dce 100644
--- a/hl/src/H5LTparse.c
+++ b/hl/src/H5LTparse.c
@@ -60,7 +60,7 @@ int csindex = -1; /*pointer to the top of compound stack*/
/*structure for array type information*/
struct arr_info {
hsize_t dims[H5S_MAX_RANK]; /*size of each dimension, limited to 32 dimensions*/
- int ndims; /*number of dimensions*/
+ unsigned ndims; /*number of dimensions*/
hbool_t is_dim; /*flag to lexer for dimension*/
};
/*stack for nested array type*/
@@ -873,7 +873,7 @@ case 60:
break;
case 61:
#line 223 "H5LTparse.y"
-{ int ndims = arr_stack[asindex].ndims;
+{ unsigned ndims = arr_stack[asindex].ndims;
arr_stack[asindex].dims[ndims] = (hsize_t)yylval.ival;
arr_stack[asindex].ndims++;
arr_stack[asindex].is_dim = 0;
diff --git a/hl/src/H5LTparse.y b/hl/src/H5LTparse.y
index 49211fb..6e866c1 100644
--- a/hl/src/H5LTparse.y
+++ b/hl/src/H5LTparse.y
@@ -41,7 +41,7 @@ int csindex = -1; /*pointer to the top of compound stack*/
/*structure for array type information*/
struct arr_info {
hsize_t dims[H5S_MAX_RANK]; /*size of each dimension, limited to 32 dimensions*/
- int ndims; /*number of dimensions*/
+ unsigned ndims; /*number of dimensions*/
hbool_t is_dim; /*flag to lexer for dimension*/
};
/*stack for nested array type*/
@@ -220,7 +220,7 @@ dim_list :
| dim_list dim
;
dim : '[' { arr_stack[asindex].is_dim = 1; /*notice lexer of dimension size*/ }
- dimsize { int ndims = arr_stack[asindex].ndims;
+ dimsize { unsigned ndims = arr_stack[asindex].ndims;
arr_stack[asindex].dims[ndims] = (hsize_t)yylval.ival;
arr_stack[asindex].ndims++;
arr_stack[asindex].is_dim = 0;