[ET Trac] [Einstein Toolkit] #604: LocalReduce: Initialize variables to avoid compiler warnings
Einstein Toolkit
trac-noreply at einsteintoolkit.org
Thu Oct 6 23:38:53 CDT 2011
#604: LocalReduce: Initialize variables to avoid compiler warnings
-------------------------+--------------------------------------------------
Reporter: knarf | Owner:
Type: enhancement | Status: new
Priority: minor | Milestone:
Component: Cactus | Version: development version
Keywords: |
-------------------------+--------------------------------------------------
The following one-line change would initialize the inval variable,
avoiding compiler warnings for almost all variable types.
{{{
Index: local_reductions.h
===================================================================
--- local_reductions.h (revision 86)
+++ local_reductions.h (working copy)
@@ -32,6 +32,7 @@
iter = 0;
\
sum_indices = 0;
\
num_points = 1;
\
+ REDUCTION_INITIAL(inval)
\
REDUCTION_INITIAL( * outval)
\
\
if ( N_dims == 0 )
\
}}}
--
Ticket URL: <https://trac.einsteintoolkit.org/ticket/604>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit
More information about the Trac
mailing list