From 23e994958b6190715aefb698b55dad70deb72049 Mon Sep 17 00:00:00 2001 From: Raymond Lu Date: Fri, 4 Nov 2005 16:29:23 -0500 Subject: [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. --- hl/test/test_lite.c | 77 ++++++++++++++++++++++++++--------------------------- 1 file 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; -- cgit v0.12