summaryrefslogtreecommitdiffstats
path: root/hl
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2005-11-04 21:29:23 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2005-11-04 21:29:23 (GMT)
commit23e994958b6190715aefb698b55dad70deb72049 (patch)
tree13f19964c7eec3e48a0915c23c18aa0764ac4492 /hl
parent1c709d9057fcda357cde37a5deae3238bc3a22ad (diff)
downloadhdf5-23e994958b6190715aefb698b55dad70deb72049.zip
hdf5-23e994958b6190715aefb698b55dad70deb72049.tar.gz
hdf5-23e994958b6190715aefb698b55dad70deb72049.tar.bz2
[svn-r11683]
Purpose: Minor bug fix Description: Static function test_text_dtype() has static subroutines defined after itself. The gcc compiler on sleipnir complained. Solution: put test_text_dtype() after subroutine's definition. Platforms tested: sleipnir with gcc 4.0 where the complaints happened. Simple change.
Diffstat (limited to 'hl')
-rw-r--r--hl/test/test_lite.c77
1 files changed, 38 insertions, 39 deletions
diff --git a/hl/test/test_lite.c b/hl/test/test_lite.c
index 9612829..6b10919 100644
--- a/hl/test/test_lite.c
+++ b/hl/test/test_lite.c
@@ -1044,44 +1044,6 @@ static herr_t make_attributes( hid_t loc_id, const char* obj_name )
}
/*-------------------------------------------------------------------------
- * test H5LTtext_to_dtype function
- *-------------------------------------------------------------------------
- */
-static int test_text_dtype(void)
-{
- TESTING("H5LTtext_to_dtype");
-
- if(test_integers()<0)
- goto out;
-
- if(test_fps()<0)
- goto out;
-
- if(test_strings()<0)
- goto out;
-
- if(test_opaques()<0)
- goto out;
-
- if(test_enums()<0)
- goto out;
-
- if(test_variables()<0)
- goto out;
-
- if(test_arrays()<0)
- goto out;
-
- if(test_compounds()<0)
- goto out;
-
- return 0;
-
-out:
- return -1;
-}
-
-/*-------------------------------------------------------------------------
* subroutine for test_text_dtype(): test_integers().
*-------------------------------------------------------------------------
*/
@@ -1447,10 +1409,47 @@ out:
}
/*-------------------------------------------------------------------------
- * the main program
+ * test H5LTtext_to_dtype function
*-------------------------------------------------------------------------
*/
+static int test_text_dtype(void)
+{
+ TESTING("H5LTtext_to_dtype");
+
+ if(test_integers()<0)
+ goto out;
+
+ if(test_fps()<0)
+ goto out;
+
+ if(test_strings()<0)
+ goto out;
+
+ if(test_opaques()<0)
+ goto out;
+
+ if(test_enums()<0)
+ goto out;
+
+ if(test_variables()<0)
+ goto out;
+
+ if(test_arrays()<0)
+ goto out;
+
+ if(test_compounds()<0)
+ goto out;
+ return 0;
+
+out:
+ return -1;
+}
+
+/*-------------------------------------------------------------------------
+ * the main program
+ *-------------------------------------------------------------------------
+ */
int main( void )
{
int nerrors=0;