From 47a90e69dfde3f4f8fdf90654248a6b499fbadbc Mon Sep 17 00:00:00 2001 From: "Field G. Van Zee" Date: Tue, 1 Apr 2014 14:34:31 -0500 Subject: [PATCH] Attempted to fix uninitialized variable warnings. Details: - Added initialization statements to various macros used in level 1m and 1m-like operations. I wasn't able to reproduce the reported behavior, so hopefully this takes care of it. Thanks to Jeff Hammond for the report. --- frame/include/bli_param_macro_defs.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/frame/include/bli_param_macro_defs.h b/frame/include/bli_param_macro_defs.h index 4cfa45e71..c235e420e 100644 --- a/frame/include/bli_param_macro_defs.h +++ b/frame/include/bli_param_macro_defs.h @@ -581,6 +581,11 @@ uplo_eff, n_elem_max, n_iter, inca, lda, \ ij0, n_shift ) \ { \ + /* This is to prevent the compiler from warning about uninitialized + variables. */ \ + ij0 = 0; \ + n_shift = 0; \ +\ /* If matrix A is entirely "unstored", that is, if either: - A is lower-stored and entirely above the diagonal, or - A is upper-stored and entirely below the diagonal @@ -669,6 +674,11 @@ ij0, n_shift \ ) \ { \ + /* This is to prevent the compiler from warning about uninitialized + variables. */ \ + ij0 = 0; \ + n_shift = 0; \ +\ /* If matrix A is entirely "unstored", that is, if either: - A is lower-stored and entirely above the diagonal, or - A is upper-stored and entirely below the diagonal @@ -749,6 +759,11 @@ ij0, n_shift \ ) \ { \ + /* This is to prevent the compiler from warning about uninitialized + variables. */ \ + ij0 = 0; \ + n_shift = 0; \ +\ /* If matrix A is entirely "unstored", that is, if either: - A is lower-stored and entirely above the diagonal, or - A is upper-stored and entirely below the diagonal