diff options
Diffstat (limited to 'src/ReductionMax.c')
-rw-r--r-- | src/ReductionMax.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/ReductionMax.c b/src/ReductionMax.c index 8e79338..6c110eb 100644 --- a/src/ReductionMax.c +++ b/src/ReductionMax.c @@ -137,14 +137,12 @@ static int ReductionMax (int N_dims, int operator_handle, int i, j, k, flag, product, num_points; int ierr; int * iters_per_dim; - void * output_buffer[10]; /* indices to hold the temp indices of size N_dims and iteration indices*/ int * indices; int * actual_indices; int * actual_iters_per_dim; - int index = 0; - int max_iter = 0;; + int max_iter = 0; int iter = 0; int sum_indices = 0; int max_index = 1; @@ -162,8 +160,11 @@ static int ReductionMax (int N_dims, int operator_handle, CCTK_INT mask_offset; CCTK_INT mask_time_level; - - + /* prevent warnings for unused vars */ + (void)(mask_array); + (void)(mask_offset + 0); + (void)(mask_time_level + 0); + (void)(operator_handle + 0); /* set the number of points */ num_points = 0; |