summaryrefslogtreecommitdiffstats
path: root/c++/test
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2005-03-20 14:15:39 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2005-03-20 14:15:39 (GMT)
commit8d3da64e230530e172f30840a60c312498f49cd8 (patch)
tree8665d755e5aaa0ae28599121a4f3f8110dadd594 /c++/test
parent99d26d20f83ab0ae3122b77a2efa2d617ba99769 (diff)
downloadhdf5-8d3da64e230530e172f30840a60c312498f49cd8.zip
hdf5-8d3da64e230530e172f30840a60c312498f49cd8.tar.gz
hdf5-8d3da64e230530e172f30840a60c312498f49cd8.tar.bz2
[svn-r10243] Purpose: Minor bug fix
Description: Removed a redefinition of a variable. Platforms: Linux 2.4 (heping) - very minor
Diffstat (limited to 'c++/test')
-rw-r--r--c++/test/tattr.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/c++/test/tattr.cpp b/c++/test/tattr.cpp
index 48b95b1..525cf39 100644
--- a/c++/test/tattr.cpp
+++ b/c++/test/tattr.cpp
@@ -294,6 +294,8 @@ test_attr_rename(void)
static void
test_attr_basic_read(void)
{
+ int i, j;
+
// Output message about test being performed
MESSAGE(5, ("Testing Basic Attribute Reading Functions\n"));
@@ -316,7 +318,7 @@ test_attr_basic_read(void)
ds_attr.read(PredType::NATIVE_INT, &read_data1);
// Verify values read in
- for(int i=0; i<ATTR1_DIM1; i++)
+ for(i=0; i<ATTR1_DIM1; i++)
if(attr_data1[i]!=read_data1[i])
TestErrPrintf("%d: attribute data different: attr_data1[%d]=%d, read_data1[%d]=%d\n",__LINE__,i,attr_data1[i],i,read_data1[i]);
@@ -340,8 +342,8 @@ test_attr_basic_read(void)
gr_attr.read(PredType::NATIVE_INT, read_data2);
// Verify values read in
- for(int i=0; i<ATTR2_DIM1; i++)
- for(int j=0; j<ATTR2_DIM2; j++)
+ for(i=0; i<ATTR2_DIM1; i++)
+ for(j=0; j<ATTR2_DIM2; j++)
if(attr_data2[i][j]!=read_data2[i][j]) {
TestErrPrintf("%d: attribute data different: attr_data2[%d][%d]=%d, read_data2[%d][%d]=%d\n",__LINE__, i,j,attr_data2[i][j],i,j,read_data1[i]);
}