From d55e204e11b8f787d517fc1eff5345160913f1c0 Mon Sep 17 00:00:00 2001 From: eschnett Date: Thu, 27 Oct 2011 15:31:47 +0000 Subject: 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 --- src/local_reductions.h | 1 + 1 file changed, 1 insertion(+) 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 ) \ -- cgit v1.2.3