aboutsummaryrefslogtreecommitdiff
path: root/src/ReductionMax.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/ReductionMax.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/ReductionMax.c')
-rw-r--r--src/ReductionMax.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ReductionMax.c b/src/ReductionMax.c
index 7d2c53d..7425c16 100644
--- a/src/ReductionMax.c
+++ b/src/ReductionMax.c
@@ -217,6 +217,10 @@ static int PUGH_ReductionMaxVal (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) ((array)[0])
#define REDUCTION_OPERATION(max, scalar) if (max < scalar) max = scalar