aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a>2001-05-03 22:15:18 +0000
committertradke <tradke@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a>2001-05-03 22:15:18 +0000
commit07cf19362917108bfea5b08ab5a03dadd6ac2b1e (patch)
tree074f20d1e380607b7ca54e25f3dc3a62b3b04c44
parent744608582b87ea33f1c726e30cc1d6ee98c08b32 (diff)
Fixed compiler warnings about unused function parameters.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@117 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
-rw-r--r--src/GHExtension.c33
1 files changed, 11 insertions, 22 deletions
diff --git a/src/GHExtension.c b/src/GHExtension.c
index d0d180d..54b3b35 100644
--- a/src/GHExtension.c
+++ b/src/GHExtension.c
@@ -7,7 +7,7 @@
@enddesc
@history
@endhistory
- @version $Header$
+ @version $Id$
@@*/
/*#define DEBUG_IO 1*/
@@ -30,28 +30,12 @@ CCTK_FILEVERSION(CactusBase_IOUtil_GHExtension_c)
/********************************************************************
- ********************* Local Data Types ***********************
- ********************************************************************/
-
-/********************************************************************
- ********************* Local Routine Prototypes *********************
- ********************************************************************/
-
-/********************************************************************
- ********************* Other Routine Prototypes *********************
- ********************************************************************/
-
-/********************************************************************
- ********************* Local Data *****************************
- ********************************************************************/
-
-/********************************************************************
********************* External Routines **********************
********************************************************************/
-
-/********************************************************************
- ********************* Local Routines *************************
- ********************************************************************/
+int IOUtil_InitGH (cGH *GH);
+void *IOUtil_SetupGH (tFleshConfig *config,
+ int convergence_level,
+ cGH *GH);
/*@@
@routine IOUtil_SetupGH
@@ -81,6 +65,11 @@ void *IOUtil_SetupGH (tFleshConfig *config,
int convergence_level,
cGH *GH)
{
+ /* avoid compiler warnings about unused parameters */
+ config = config;
+ convergence_level = convergence_level;
+ GH = GH;
+
return (malloc (sizeof (ioGH)));
}
@@ -110,7 +99,7 @@ int IOUtil_InitGH (cGH *GH)
ioGH *myGH;
- myGH = (ioGH *) GH->extensions [CCTK_GHExtensionHandle ("IO")];
+ myGH = (ioGH *) CCTK_GHExtension (GH, "IO");
/* Create the checkpoint directory */
if (CCTK_MyProc (GH) == 0)