aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@d60812e6-3970-4df4-986e-c251b06effeb>2001-11-05 15:04:13 +0000
committertradke <tradke@d60812e6-3970-4df4-986e-c251b06effeb>2001-11-05 15:04:13 +0000
commitb2c0086564951243a58574cd17829d7b955e3420 (patch)
tree4a3245266f125ad768c7da67a2eee4abfdae20fc
parent4c96856378ecdc3c902924b595be00dbf256dccb (diff)
Fixed compiler warnings on unused function arguments.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGHReduce/trunk@19 d60812e6-3970-4df4-986e-c251b06effeb
-rw-r--r--src/ReductionMax.c5
-rw-r--r--src/ReductionMin.c5
-rw-r--r--src/ReductionNormInf.c3
-rw-r--r--src/ReductionSum.c5
4 files changed, 11 insertions, 7 deletions
diff --git a/src/ReductionMax.c b/src/ReductionMax.c
index 390b4fc..6ba57c7 100644
--- a/src/ReductionMax.c
+++ b/src/ReductionMax.c
@@ -218,8 +218,9 @@ static int PUGH_ReductionMaxVal (cGH *GH,
#endif
- /* prevent compiler warnings about the num_points parameter
- which is unused in this reduction operator */
+ /* prevent compiler warnings about unused parameters */
+ GH = GH;
+ proc = proc;
num_points = num_points;
/* macros to complete the ITERATE_ARRAY macro */
diff --git a/src/ReductionMin.c b/src/ReductionMin.c
index 061523e..dfc22a9 100644
--- a/src/ReductionMin.c
+++ b/src/ReductionMin.c
@@ -219,8 +219,9 @@ static int PUGH_ReductionMinVal (cGH *GH,
#endif
- /* prevent compiler warnings about the num_points parameter
- which is unused in this reduction operator */
+ /* prevent compiler warnings about unused parameters */
+ GH = GH;
+ proc = proc;
num_points = num_points;
/* macros to complete the ITERATE_ARRAY macro */
diff --git a/src/ReductionNormInf.c b/src/ReductionNormInf.c
index 9be8883..4e0569a 100644
--- a/src/ReductionNormInf.c
+++ b/src/ReductionNormInf.c
@@ -234,7 +234,8 @@ static int PUGH_ReductionNormInf (cGH *GH,
#define MAX(x,y) ((x) >= (y) ? (x) : (y))
- /* avoid compiler warning about unused parameter */
+ /* avoid compiler warnings about unused parameters */
+ proc = proc;
num_points = num_points;
for (i = total_outvals = 0; i < num_inarrays; i++)
diff --git a/src/ReductionSum.c b/src/ReductionSum.c
index 0ff227f..12ad620 100644
--- a/src/ReductionSum.c
+++ b/src/ReductionSum.c
@@ -218,8 +218,9 @@ static int PUGH_ReductionSum (cGH *GH,
#endif
- /* prevent compiler warnings about the num_points parameter
- which is unused in this reduction operator */
+ /* avoid compiler warnings about unused parameters */
+ GH = GH;
+ proc = proc;
num_points = num_points;
/* macros to complete the ITERATE_ARRAY macro */