[mlpack] 28/207: Initialise "success" variable to fix warnings
Barak A. Pearlmutter
barak+git at pearlmutter.net
Thu Mar 23 17:53:37 UTC 2017
This is an automated email from the git hooks/post-receive script.
bap pushed a commit to branch master
in repository mlpack.
commit 29992bb3abc6523a5f8624242eec7205a03f0778
Author: Rishabh Kumar <kris.kr296 at gmail.com>
Date: Thu Dec 22 20:16:21 2016 +0530
Initialise "success" variable to fix warnings
---
.../core/tree/rectangle_tree/r_plus_tree_descent_heuristic_impl.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mlpack/core/tree/rectangle_tree/r_plus_tree_descent_heuristic_impl.hpp b/src/mlpack/core/tree/rectangle_tree/r_plus_tree_descent_heuristic_impl.hpp
index 6a61e91..fd27a27 100644
--- a/src/mlpack/core/tree/rectangle_tree/r_plus_tree_descent_heuristic_impl.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/r_plus_tree_descent_heuristic_impl.hpp
@@ -25,7 +25,7 @@ size_t RPlusTreeDescentHeuristic::ChooseDescentNode(TreeType* node,
{
typedef typename TreeType::ElemType ElemType;
size_t bestIndex = 0;
- bool success;
+ bool success = true;
// Try to find a node that contains the point.
for (bestIndex = 0; bestIndex < node->NumChildren(); bestIndex++)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git
More information about the debian-science-commits
mailing list