aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@eff87b29-5268-4891-90a3-a07138403961>2000-11-22 14:55:39 +0000
committertradke <tradke@eff87b29-5268-4891-90a3-a07138403961>2000-11-22 14:55:39 +0000
commitebefd5265351f7f5d10d83389a131e23c8cf0892 (patch)
tree8bcd617438d67eceda96e2397c0e2e921f7df5cc
parentb0d1544724657ceea4085b29c8a0a911f1afeade (diff)
Removed compiler warnings about usused variables.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusIO/IOJpeg/trunk@28 eff87b29-5268-4891-90a3-a07138403961
-rw-r--r--src/DumpVar.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/DumpVar.c b/src/DumpVar.c
index 35920bb..93f7bbe 100644
--- a/src/DumpVar.c
+++ b/src/DumpVar.c
@@ -16,15 +16,11 @@ int IOJpeg_DumpVar (cGH *GH, int index, int timelevel, IOJpegGeo_t *geo, FILE *f
DECLARE_CCTK_PARAMETERS
void *data=NULL;
int *hsizes, slabstart[SLABSKEL_MAXDIM];
- IOJpegGH *ssGH;
int vtype;
int idim, vdim;
int sdir[3] = {0,0,0};
- /* Get the handle for StreamedHDF5 extensions */
- ssGH = (IOJpegGH *) GH->extensions [CCTK_GHExtensionHandle ("IOJpeg")];
-
/* Allocate buffer to hold actual slab sizes */
hsizes = (int*)malloc(geo->sdim*sizeof(int));
@@ -132,12 +128,12 @@ int IOJpeg_Output(cGH *GH, int index, int timelevel, CCTK_REAL *data,
}
else
{
- int reduction_handle,ierr;
+ int reduction_handle;
reduction_handle = CCTK_ReductionHandle ("maximum");
- ierr = CCTK_Reduce (GH, 0, reduction_handle, 1,
+ CCTK_Reduce (GH, 0, reduction_handle, 1,
CCTK_VARIABLE_REAL,&max, 1, index);
reduction_handle = CCTK_ReductionHandle ("minimum");
- ierr = CCTK_Reduce (GH, 0, reduction_handle, 1,
+ CCTK_Reduce (GH, 0, reduction_handle, 1,
CCTK_VARIABLE_REAL,&min, 1, index);
}