From e9765897c6c65b42ae1cb093ab3a02b38243dd16 Mon Sep 17 00:00:00 2001 From: yye00 Date: Thu, 26 Aug 2004 16:21:39 +0000 Subject: warning fixes git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalReduce/trunk@29 7daa882c-dc44-4453-834e-278d26b18e6a --- src/ReductionAvg.c | 2 +- src/ReductionCount.c | 2 +- src/ReductionMax.c | 2 +- src/ReductionMin.c | 2 +- src/ReductionNorm1.c | 2 +- src/ReductionNorm2.c | 2 +- src/ReductionNorm3.c | 2 +- src/ReductionNorm4.c | 2 +- src/ReductionNormInf.c | 2 +- src/ReductionSum.c | 2 +- src/local_reductions.h | 1 + 11 files changed, 11 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/ReductionAvg.c b/src/ReductionAvg.c index ee1c2bc..4191220 100644 --- a/src/ReductionAvg.c +++ b/src/ReductionAvg.c @@ -208,7 +208,7 @@ static int ReductionAvg (int N_dims, int operator_handle, if ( Util_TableQueryNKeys(param_table_handle) != 0) { ierr = 0; - ierr = Util_TableGetInt(param_table_handle, mask_type_code, "mask_type_code"); + ierr = Util_TableGetInt(param_table_handle, &mask_type_code, "mask_type_code"); /* mask_valid_min, mask_valid_max; ierr = Util_TableGetGeneric(param_table_handle, mask_type_code, diff --git a/src/ReductionCount.c b/src/ReductionCount.c index 91ff58d..52b29c3 100644 --- a/src/ReductionCount.c +++ b/src/ReductionCount.c @@ -211,7 +211,7 @@ static int ReductionCount (int N_dims, int operator_handle, if ( Util_TableQueryNKeys(param_table_handle) != 0) { ierr = 0; - ierr = Util_TableGetInt(param_table_handle, mask_type_code, "mask_type_code"); + ierr = Util_TableGetInt(param_table_handle, &mask_type_code, "mask_type_code"); /* mask_valid_min, mask_valid_max; ierr = Util_TableGetGeneric(param_table_handle, mask_type_code, diff --git a/src/ReductionMax.c b/src/ReductionMax.c index 3137bc3..453cc10 100644 --- a/src/ReductionMax.c +++ b/src/ReductionMax.c @@ -212,7 +212,7 @@ static int ReductionMax (int N_dims, int operator_handle, if ( Util_TableQueryNKeys(param_table_handle) != 0) { ierr = 0; - ierr = Util_TableGetInt(param_table_handle, mask_type_code, "mask_type_code"); + ierr = Util_TableGetInt(param_table_handle, &mask_type_code, "mask_type_code"); /* mask_valid_min, mask_valid_max; ierr = Util_TableGetGeneric(param_table_handle, mask_type_code, diff --git a/src/ReductionMin.c b/src/ReductionMin.c index c0fd0c0..ebfe389 100644 --- a/src/ReductionMin.c +++ b/src/ReductionMin.c @@ -208,7 +208,7 @@ static int ReductionMin (int N_dims, int operator_handle, if ( Util_TableQueryNKeys(param_table_handle) != 0) { ierr = 0; - ierr = Util_TableGetInt(param_table_handle, mask_type_code, "mask_type_code"); + ierr = Util_TableGetInt(param_table_handle, &mask_type_code, "mask_type_code"); /* mask_valid_min, mask_valid_max; ierr = Util_TableGetGeneric(param_table_handle, mask_type_code, diff --git a/src/ReductionNorm1.c b/src/ReductionNorm1.c index 64e353e..93b2bd5 100644 --- a/src/ReductionNorm1.c +++ b/src/ReductionNorm1.c @@ -208,7 +208,7 @@ static int ReductionL1 (int N_dims, int operator_handle, if ( Util_TableQueryNKeys(param_table_handle) != 0) { ierr = 0; - ierr = Util_TableGetInt(param_table_handle, mask_type_code, "mask_type_code"); + ierr = Util_TableGetInt(param_table_handle, &mask_type_code, "mask_type_code"); /* mask_valid_min, mask_valid_max; ierr = Util_TableGetGeneric(param_table_handle, mask_type_code, diff --git a/src/ReductionNorm2.c b/src/ReductionNorm2.c index dc150b6..dc25dba 100644 --- a/src/ReductionNorm2.c +++ b/src/ReductionNorm2.c @@ -208,7 +208,7 @@ static int ReductionL2 (int N_dims, int operator_handle, if ( Util_TableQueryNKeys(param_table_handle) != 0) { ierr = 0; - ierr = Util_TableGetInt(param_table_handle, mask_type_code, "mask_type_code"); + ierr = Util_TableGetInt(param_table_handle, &mask_type_code, "mask_type_code"); /* mask_valid_min, mask_valid_max; ierr = Util_TableGetGeneric(param_table_handle, mask_type_code, diff --git a/src/ReductionNorm3.c b/src/ReductionNorm3.c index 709d7c3..768d470 100644 --- a/src/ReductionNorm3.c +++ b/src/ReductionNorm3.c @@ -208,7 +208,7 @@ static int ReductionL3 (int N_dims, int operator_handle, if ( Util_TableQueryNKeys(param_table_handle) != 0) { ierr = 0; - ierr = Util_TableGetInt(param_table_handle, mask_type_code, "mask_type_code"); + ierr = Util_TableGetInt(param_table_handle, &mask_type_code, "mask_type_code"); /* mask_valid_min, mask_valid_max; ierr = Util_TableGetGeneric(param_table_handle, mask_type_code, diff --git a/src/ReductionNorm4.c b/src/ReductionNorm4.c index 20178a9..7cdbdf8 100644 --- a/src/ReductionNorm4.c +++ b/src/ReductionNorm4.c @@ -208,7 +208,7 @@ static int ReductionL4 (int N_dims, int operator_handle, if ( Util_TableQueryNKeys(param_table_handle) != 0) { ierr = 0; - ierr = Util_TableGetInt(param_table_handle, mask_type_code, "mask_type_code"); + ierr = Util_TableGetInt(param_table_handle, &mask_type_code, "mask_type_code"); /* mask_valid_min, mask_valid_max; ierr = Util_TableGetGeneric(param_table_handle, mask_type_code, diff --git a/src/ReductionNormInf.c b/src/ReductionNormInf.c index 3cadb9e..02ac097 100644 --- a/src/ReductionNormInf.c +++ b/src/ReductionNormInf.c @@ -208,7 +208,7 @@ static int ReductionLInf (int N_dims, int operator_handle, if ( Util_TableQueryNKeys(param_table_handle) != 0) { ierr = 0; - ierr = Util_TableGetInt(param_table_handle, mask_type_code, "mask_type_code"); + ierr = Util_TableGetInt(param_table_handle, &mask_type_code, "mask_type_code"); /* mask_valid_min, mask_valid_max; ierr = Util_TableGetGeneric(param_table_handle, mask_type_code, diff --git a/src/ReductionSum.c b/src/ReductionSum.c index d3e7b8d..3eaaf4f 100644 --- a/src/ReductionSum.c +++ b/src/ReductionSum.c @@ -208,7 +208,7 @@ static int ReductionSum (int N_dims, int operator_handle, if ( Util_TableQueryNKeys(param_table_handle) != 0) { ierr = 0; - ierr = Util_TableGetInt(param_table_handle, mask_type_code, "mask_type_code"); + ierr = Util_TableGetInt(param_table_handle, &mask_type_code, "mask_type_code"); /* mask_valid_min, mask_valid_max; ierr = Util_TableGetGeneric(param_table_handle, mask_type_code, diff --git a/src/local_reductions.h b/src/local_reductions.h index 57b2567..5f3f5e3 100644 --- a/src/local_reductions.h +++ b/src/local_reductions.h @@ -13,6 +13,7 @@ #include "cctk.h" +#include "util_Table.h" #include "cctk_Reduction.h" -- cgit v1.2.3