#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 ) \ }}}