diff options
author | knarf <knarf@7daa882c-dc44-4453-834e-278d26b18e6a> | 2012-12-14 17:41:25 +0000 |
---|---|---|
committer | knarf <knarf@7daa882c-dc44-4453-834e-278d26b18e6a> | 2012-12-14 17:41:25 +0000 |
commit | d7d5150ab6b0efc44433d915634d4f9a4f3bc7ae (patch) | |
tree | f39b79e46597204bfa9af72d9b281f23c2709c72 | |
parent | 8c9f679ed62bca71c66410ddd25df6168d7a6202 (diff) |
mark input array of macro as potentially unused to avoid compiler warnings when indeed it is (e.g. for the count reduction where the data isn't looked at)
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/LocalReduce/trunk@101 7daa882c-dc44-4453-834e-278d26b18e6a
-rw-r--r-- | src/CountFunctions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CountFunctions.c b/src/CountFunctions.c index 8c10d0a..5848b61 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) typed_vdata[sum_indices]; + inval = (out_type CCTK_ATTRIBUTE_UNUSED) 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; |