[mlpack-git] master: Comment out parameter name instead of (void)ing it. Just a little style fix. (0b1234f)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 22:11:46 EST 2015


Repository : https://github.com/mlpack/mlpack

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40

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

commit 0b1234f342995466ac73e215446aa74d8ec04c2b
Author: Ryan Curtin <ryan at ratml.org>
Date:   Mon Jan 12 11:03:34 2015 -0500

    Comment out parameter name instead of (void)ing it.
    Just a little style fix.


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

0b1234f342995466ac73e215446aa74d8ec04c2b
 src/mlpack/methods/cf/cf_impl.hpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/mlpack/methods/cf/cf_impl.hpp b/src/mlpack/methods/cf/cf_impl.hpp
index 53b0a05..e645b4c 100644
--- a/src/mlpack/methods/cf/cf_impl.hpp
+++ b/src/mlpack/methods/cf/cf_impl.hpp
@@ -19,7 +19,7 @@ namespace cf {
  * list.
  */
 template<typename FactorizerType>
-void ApplyFactorizer(arma::mat& data,
+void ApplyFactorizer(arma::mat& /* data */,
     arma::sp_mat& cleanedData,
     FactorizerType& factorizer,
     const size_t rank,
@@ -29,7 +29,6 @@ void ApplyFactorizer(arma::mat& data,
         FactorizerTraits<FactorizerType>::UsesCoordinateList == false,
         int*>::type = 0)
 {
-  (void)data;
   factorizer.Apply(cleanedData, rank, w, h);
 }
 



More information about the mlpack-git mailing list