aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@c78560ca-4b45-4335-b268-5f3340f3cb52>2001-11-05 14:59:33 +0000
committertradke <tradke@c78560ca-4b45-4335-b268-5f3340f3cb52>2001-11-05 14:59:33 +0000
commitf3d9dff528daedf6c8bb9a8be3ad644b6ce2d535 (patch)
tree41f4920af11922a06ff744fa153b0e578329519f
parent1062de92f595a468528f42a02c842f07e4cb79ef (diff)
Fixed compiler warnings.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@143 c78560ca-4b45-4335-b268-5f3340f3cb52
-rw-r--r--src/GHExtension.c14
-rw-r--r--src/Symmetry.c5
2 files changed, 16 insertions, 3 deletions
diff --git a/src/GHExtension.c b/src/GHExtension.c
index 031ed5d..6dffdfa 100644
--- a/src/GHExtension.c
+++ b/src/GHExtension.c
@@ -3,9 +3,10 @@
@date Mon Mar 15 15:48:42 1999
@author Gerd Lanfermann
@desc
- Set up the symmetry GH extension. This should really be done
- with StoredData
+ Set up the symmetry GH extension. This should really be done
+ with StoredData
@enddesc
+ @version $Id$
@@*/
#include <stdlib.h>
@@ -17,7 +18,8 @@ static const char *rcsid = "$Header$";
CCTK_FILEVERSION(CactusBase_CartGrid3D_GHExtension_c)
-void *Symmetry_AllocGHex(tFleshConfig *config, int convlevel, cGH *GH) ;
+int Symmetry_InitGHex(cGH *GH);
+void *Symmetry_AllocGHex(tFleshConfig *config, int convlevel, cGH *GH);
int Symmetry_InitFGHex(cGH *GH);
void *Symmetry_AllocGHex(tFleshConfig *config, int convlevel, cGH *GH)
@@ -26,6 +28,12 @@ void *Symmetry_AllocGHex(tFleshConfig *config, int convlevel, cGH *GH)
int gf,grid_dim,NumVars; /* Number of dimensions, grid functions */
SymmetryGHex *newGHex; /* Type of GHextension is EinsteinBoundGHex */
+
+ /* avoid compiler warnings about unused arguments */
+ config = config;
+ convlevel = convlevel;
+ GH = GH;
+
NumVars = CCTK_NumVars(); /* Get number of grid functions */
grid_dim = CCTK_MaxDim(); /* Get maximal dimension of the grid */
diff --git a/src/Symmetry.c b/src/Symmetry.c
index 44f2baa..7b65592 100644
--- a/src/Symmetry.c
+++ b/src/Symmetry.c
@@ -205,6 +205,11 @@ int CartApplySym1Di(cGH *GH, int *doSym, int *cntstag,
{
int i;
+
+ /* avoid compiler warnings about unused parameters */
+ GH = GH;
+ lssh = lssh;
+
if (doSym[0] == 1)
{
for(i=0; i < ghostz[0]; i++)