aboutsummaryrefslogtreecommitdiff
path: root/src/ReductionSum.c
diff options
context:
space:
mode:
authortradke <tradke@d60812e6-3970-4df4-986e-c251b06effeb>2001-02-13 12:09:19 +0000
committertradke <tradke@d60812e6-3970-4df4-986e-c251b06effeb>2001-02-13 12:09:19 +0000
commit5523a6115fb6edb7d37bb6794ad960d06a236ef3 (patch)
tree52fa40f187b41c06f58264176d6025eadc63acd3 /src/ReductionSum.c
parent3444ee7db0e5e200643c58c150bd0c55620f4b0e (diff)
Fixed gcc warnings.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGHReduce/trunk@6 d60812e6-3970-4df4-986e-c251b06effeb
Diffstat (limited to 'src/ReductionSum.c')
-rw-r--r--src/ReductionSum.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ReductionSum.c b/src/ReductionSum.c
index e4bde2b..5cee7de 100644
--- a/src/ReductionSum.c
+++ b/src/ReductionSum.c
@@ -217,6 +217,10 @@ static int PUGH_ReductionSum (cGH *GH,
#endif
+ /* prevent compiler warnings about the num_points parameter
+ which is unused in this reduction operator */
+ num_points = num_points;
+
/* macros to complete the ITERATE_ARRAY macro */
#define INITIAL_REDUCTION_VALUE(array) 0
#define REDUCTION_OPERATION(sum, scalar) sum += scalar