aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreschnett <eschnett@7daa882c-dc44-4453-834e-278d26b18e6a>2011-10-27 15:31:47 +0000
committereschnett <eschnett@7daa882c-dc44-4453-834e-278d26b18e6a>2011-10-27 15:31:47 +0000
commitd55e204e11b8f787d517fc1eff5345160913f1c0 (patch)
treecc992ec9a0f074995de16e7db76e65e5db48ac87
parent4456e805566b9593632e0ab11ad77edd18741ee6 (diff)
Initialize "inval" variable
The following one-line change would initialize the inval variable, avoiding compiler warnings for almost all variable types. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/LocalReduce/trunk@91 7daa882c-dc44-4453-834e-278d26b18e6a
-rw-r--r--src/local_reductions.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/local_reductions.h b/src/local_reductions.h
index 57e2b47..533eef6 100644
--- a/src/local_reductions.h
+++ b/src/local_reductions.h
@@ -32,6 +32,7 @@ extern "C" {
iter = 0; \
sum_indices = 0; \
num_points = 1; \
+ REDUCTION_INITIAL(inval) \
REDUCTION_INITIAL( * outval) \
\
if ( N_dims == 0 ) \