From b2c0086564951243a58574cd17829d7b955e3420 Mon Sep 17 00:00:00 2001 From: tradke Date: Mon, 5 Nov 2001 15:04:13 +0000 Subject: Fixed compiler warnings on unused function arguments. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGHReduce/trunk@19 d60812e6-3970-4df4-986e-c251b06effeb --- src/ReductionMax.c | 5 +++-- src/ReductionMin.c | 5 +++-- src/ReductionNormInf.c | 3 ++- src/ReductionSum.c | 5 +++-- 4 files changed, 11 insertions(+), 7 deletions(-) (limited to 'src') 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 */ -- cgit v1.2.3