diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/CountFunctions.c | 2 | ||||
-rw-r--r-- | src/local_reductions.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/CountFunctions.c b/src/CountFunctions.c index 5848b61..8c10d0a 100644 --- a/src/CountFunctions.c +++ b/src/CountFunctions.c @@ -34,7 +34,7 @@ int LocalReduce_Count_BYTE(int i, int weight_on, const void * const weight, CCTK #undef REDUCTION_PREOP_CAST #define REDUCTION_PREOP_CAST(inval, typed_vdata,sum_indices, out_type) \ - inval = (out_type CCTK_ATTRIBUTE_UNUSED) typed_vdata[sum_indices]; + inval = (out_type) typed_vdata[sum_indices]; #define REDUCTION_OPERATION(Count, scalar) Count = num_points; #define WEIGHTED_REDUCTION_OPERATION(Count, scalar, weight) Count = num_points; #define REDUCTION_INITIAL(num) num = 0; diff --git a/src/local_reductions.h b/src/local_reductions.h index ac4c8aa..9d3e68b 100644 --- a/src/local_reductions.h +++ b/src/local_reductions.h @@ -27,7 +27,7 @@ extern "C" { #define ITERATE_ON_ARRAY(i,cctk_type, in_data, out_type, out_num, weight_on, weight, input_array_offset, indices, sum_indices, max_iter, iter, flag, actual_indices,input_array_strides, input_array_min_subscripts,input_array_dims,product) \ { \ const cctk_type * typed_vdata = (const cctk_type *)(in_data); \ - out_type inval; \ + CCTK_ATTRIBUTE_UNUSED out_type inval; \ out_type * outval = (out_type *) out_num; \ iter = 0; \ sum_indices = 0; \ |