[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.
This commit is contained in:
Raymond Lu 2005-11-04 16:29:23 -05:00
parent 1c709d9057
commit 23e994958b

View File

@ -1043,44 +1043,6 @@ static herr_t make_attributes( hid_t loc_id, const char* obj_name )
return 0;
}
/*-------------------------------------------------------------------------
* 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().
*-------------------------------------------------------------------------
@ -1446,11 +1408,48 @@ out:
return -1;
}
/*-------------------------------------------------------------------------
* 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;