[mlpack-git] master: Fix out-of-order initialization warning. (3199578)

gitdub at mlpack.org gitdub at mlpack.org
Mon Oct 24 03:45:58 EDT 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/86480008b76dbd6b87b4092fb4f104342604f356...31995784e651e1c17c988c79d9f53c9dbad620f8

>---------------------------------------------------------------

commit 31995784e651e1c17c988c79d9f53c9dbad620f8
Author: Ryan Curtin <ryan at ratml.org>
Date:   Mon Oct 24 03:45:45 2016 -0400

    Fix out-of-order initialization warning.


>---------------------------------------------------------------

31995784e651e1c17c988c79d9f53c9dbad620f8
 src/mlpack/methods/range_search/rs_model.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mlpack/methods/range_search/rs_model.cpp b/src/mlpack/methods/range_search/rs_model.cpp
index e493810..4932861 100644
--- a/src/mlpack/methods/range_search/rs_model.cpp
+++ b/src/mlpack/methods/range_search/rs_model.cpp
@@ -16,6 +16,7 @@ using namespace mlpack::range;
  */
 RSModel::RSModel(TreeTypes treeType, bool randomBasis) :
     treeType(treeType),
+    leafSize(0),
     randomBasis(randomBasis),
     kdTreeRS(NULL),
     coverTreeRS(NULL),
@@ -30,8 +31,7 @@ RSModel::RSModel(TreeTypes treeType, bool randomBasis) :
     rpTreeRS(NULL),
     maxRPTreeRS(NULL),
     ubTreeRS(NULL),
-    octreeRS(NULL),
-    leafSize(0)
+    octreeRS(NULL)
 {
   // Nothing to do.
 }




More information about the mlpack-git mailing list