aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@d60812e6-3970-4df4-986e-c251b06effeb>2002-06-20 11:53:05 +0000
committertradke <tradke@d60812e6-3970-4df4-986e-c251b06effeb>2002-06-20 11:53:05 +0000
commit1d524cc564ffa5c8c82ec067393abbc4dc34a769 (patch)
treef35be2efa28eda4e1ea4ddb656c214326dc8df31
parentc6c785840f6a3d5ddf0745695e9bd793a253c2eb (diff)
Fixed compiler warnings about unused arguments.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGHReduce/trunk@32 d60812e6-3970-4df4-986e-c251b06effeb
-rw-r--r--src/ReductionMax.c6
-rw-r--r--src/ReductionMin.c6
-rw-r--r--src/ReductionNormInf.c7
-rw-r--r--src/ReductionSum.c6
4 files changed, 14 insertions, 11 deletions
diff --git a/src/ReductionMax.c b/src/ReductionMax.c
index 6ba57c7..e2f3eb2 100644
--- a/src/ReductionMax.c
+++ b/src/ReductionMax.c
@@ -219,9 +219,9 @@ static int PUGH_ReductionMaxVal (cGH *GH,
/* prevent compiler warnings about unused parameters */
- GH = GH;
- proc = proc;
- num_points = num_points;
+ (void) (GH + 0);
+ (void) (proc + 0);
+ (void) (num_points + 0);
/* macros to complete the ITERATE_ARRAY macro */
#define INITIAL_REDUCTION_VALUE(array) ((array)[0])
diff --git a/src/ReductionMin.c b/src/ReductionMin.c
index dfc22a9..b1b9492 100644
--- a/src/ReductionMin.c
+++ b/src/ReductionMin.c
@@ -220,9 +220,9 @@ static int PUGH_ReductionMinVal (cGH *GH,
/* prevent compiler warnings about unused parameters */
- GH = GH;
- proc = proc;
- num_points = num_points;
+ (void) (GH + 0);
+ (void) (proc + 0);
+ (void) (num_points + 0);
/* macros to complete the ITERATE_ARRAY macro */
#define INITIAL_REDUCTION_VALUE(array) ((array)[0])
diff --git a/src/ReductionNormInf.c b/src/ReductionNormInf.c
index b93ce49..e4ee2e3 100644
--- a/src/ReductionNormInf.c
+++ b/src/ReductionNormInf.c
@@ -235,8 +235,11 @@ static int PUGH_ReductionNormInf (cGH *GH,
/* avoid compiler warnings about unused parameters */
- proc = proc;
- num_points = num_points;
+#ifndef CCTK_MPI
+ (void) (GH + 0);
+ (void) (proc + 0);
+#endif
+ (void) (num_points + 0);
for (i = total_outvals = 0; i < num_inarrays; i++)
{
diff --git a/src/ReductionSum.c b/src/ReductionSum.c
index 12ad620..64ef497 100644
--- a/src/ReductionSum.c
+++ b/src/ReductionSum.c
@@ -219,9 +219,9 @@ static int PUGH_ReductionSum (cGH *GH,
/* avoid compiler warnings about unused parameters */
- GH = GH;
- proc = proc;
- num_points = num_points;
+ (void) (GH + 0);
+ (void) (proc + 0);
+ (void) (num_points + 0);
/* macros to complete the ITERATE_ARRAY macro */
#define INITIAL_REDUCTION_VALUE(array) 0