[mlpack] 187/207: Avoid warning in a different way.

Barak A. Pearlmutter barak+git at pearlmutter.net
Thu Mar 23 17:53:53 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 b1e6cb100efcde51f4d9c9383ae207c9e1fa833a
Author: Ryan Curtin <ryan at ratml.org>
Date:   Fri Mar 17 14:21:47 2017 -0400

    Avoid warning in a different way.
---
 src/mlpack/core/data/map_policies/missing_policy.hpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/mlpack/core/data/map_policies/missing_policy.hpp b/src/mlpack/core/data/map_policies/missing_policy.hpp
index c34e6ba..28f70c3 100644
--- a/src/mlpack/core/data/map_policies/missing_policy.hpp
+++ b/src/mlpack/core/data/map_policies/missing_policy.hpp
@@ -69,10 +69,8 @@ class MissingPolicy
   MappedType MapString(const std::string& string,
                        const size_t dimension,
                        MapType& maps,
-                       std::vector<Datatype>& types)
+                       std::vector<Datatype>& /* types */)
   {
-    // mute the unused parameter warning (does nothing here.)
-    (void)types;
     // If this condition is true, either we have no mapping for the given string
     // or we have no mappings for the given dimension at all.  In either case,
     // we create a mapping.

-- 
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