[cig-commits] commit: Minor changes to code lines causing compile warnings.

Mercurial hg at geodynamics.org
Mon Feb 1 15:32:06 PST 2010


changeset:   695:dacbbdea91a5
branch:      pcu_rejig
user:        JericoRevote
date:        Wed Nov 18 18:22:17 2009 +1100
files:       Base/Context/tests/AbstractContextSuite.c Base/IO/src/CFile.c
description:
Minor changes to code lines causing compile warnings.


diff -r 04ed7ccb7ba8 -r dacbbdea91a5 Base/Context/tests/AbstractContextSuite.c
--- a/Base/Context/tests/AbstractContextSuite.c	Wed Nov 18 16:02:21 2009 +1100
+++ b/Base/Context/tests/AbstractContextSuite.c	Wed Nov 18 18:22:17 2009 +1100
@@ -203,7 +203,7 @@ void AbstractContextSuite_Setup( Abstrac
       CommWorld, 
       data->dict );
 
-	_AbstractContext_Init( data->ctx );
+	_AbstractContext_Init( (AbstractContext*)data->ctx );
    _AbstractContext_AssignFromXML( data->ctx, cf, NULL );
 
    Stream_Enable( data->ctx->info, False );
@@ -336,7 +336,7 @@ void AbstractContextSuite_TestRestartFro
       CommWorld, 
       data->dict );
 
-	 _AbstractContext_Init( data->ctx );
+	_AbstractContext_Init( (AbstractContext*)data->ctx );
    _AbstractContext_AssignFromXML( data->ctx, cf, NULL );
 
    Stream_Enable( data->ctx->info, False );
diff -r 04ed7ccb7ba8 -r dacbbdea91a5 Base/IO/src/CFile.c
--- a/Base/IO/src/CFile.c	Wed Nov 18 16:02:21 2009 +1100
+++ b/Base/IO/src/CFile.c	Wed Nov 18 18:22:17 2009 +1100
@@ -103,7 +103,8 @@ void CFile_Init( CFile* self )
 	
 void _CFile_Init( CFile* self )
 {
-	_JournalFile_Init( (JournalFile*)self, _CFile_Open, _CFile_Append, _CFile_Close, _CFile_Flush );
+	_JournalFile_Init( (JournalFile*)self, (JournalFile_OpenFunction*)_CFile_Open,
+		(JournalFile_AppendFunction*)_CFile_Append, _CFile_Close, _CFile_Flush );
 }
 	
 void _CFile_Delete( void* cfile )



More information about the CIG-COMMITS mailing list