diff options
author | yye00 <yye00@7daa882c-dc44-4453-834e-278d26b18e6a> | 2004-08-30 20:55:24 +0000 |
---|---|---|
committer | yye00 <yye00@7daa882c-dc44-4453-834e-278d26b18e6a> | 2004-08-30 20:55:24 +0000 |
commit | 214fc97b8438f30618f55b68eee7e9a9c48369cf (patch) | |
tree | ca823fb93fc3c8b99397c8509d3498b151c986c7 /src/ReductionAvg.c | |
parent | ae9617f268e2247890bc240c4ec43fc4484b5e59 (diff) |
removed all warnings
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalReduce/trunk@38 7daa882c-dc44-4453-834e-278d26b18e6a
Diffstat (limited to 'src/ReductionAvg.c')
-rw-r--r-- | src/ReductionAvg.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ReductionAvg.c b/src/ReductionAvg.c index 5238ef0..24cb152 100644 --- a/src/ReductionAvg.c +++ b/src/ReductionAvg.c @@ -142,8 +142,7 @@ static int ReductionAvg (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 ReductionAvg (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; |