diff options
Diffstat (limited to 'src/ReductionNorm1.c')
-rw-r--r-- | src/ReductionNorm1.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ReductionNorm1.c b/src/ReductionNorm1.c index 859ea01..c8f5839 100644 --- a/src/ReductionNorm1.c +++ b/src/ReductionNorm1.c @@ -142,8 +142,7 @@ static int ReductionL1 (int N_dims, int operator_handle, 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; @@ -161,6 +160,12 @@ static int ReductionL1 (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; |