[mlpack-git] master: Fix -Wmaybe-uninitialized. (84b9d42)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Wed Dec 23 15:03:02 EST 2015
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/a6b57a4e3c6c63bdd3412cd2480afbd3f560bdcd...84b9d42aae2975eae93f890a9861ce9963bd1916
>---------------------------------------------------------------
commit 84b9d42aae2975eae93f890a9861ce9963bd1916
Author: ryan <ryan at ratml.org>
Date: Wed Dec 23 15:02:41 2015 -0500
Fix -Wmaybe-uninitialized.
>---------------------------------------------------------------
84b9d42aae2975eae93f890a9861ce9963bd1916
src/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp b/src/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp
index d39ffa5..aa1f332 100644
--- a/src/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp
+++ b/src/mlpack/methods/kmeans/max_variance_new_cluster_impl.hpp
@@ -31,7 +31,7 @@ size_t MaxVarianceNewCluster::EmptyCluster(const MatType& data,
this->iteration = iteration;
// Now find the cluster with maximum variance.
- arma::uword maxVarCluster;
+ arma::uword maxVarCluster = 0;
variances.max(maxVarCluster);
// Now, inside this cluster, find the point which is furthest away.
More information about the mlpack-git
mailing list