From b21f30720a4a044fbf13c00d68e6727beeaef847 Mon Sep 17 00:00:00 2001 From: Omar Shrit Date: Thu, 23 Sep 2021 23:19:09 +0100 Subject: [PATCH] Remove ar parameter to avoid the warning Serialization is not used in this layer, therefore the warning of unused parameter is becoming annoying when trying to compile the mlpack_test making it impossible to find different errors in small terminal. Since we are using boost_visitor, the unfolding of layers is taking several pages of terminal to print this small warning. Hoping that this will mitigate one of the warning. Signed-off-by: Omar Shrit --- src/mlpack/methods/ann/layer/relu6.hpp | 2 +- src/mlpack/methods/ann/layer/relu6_impl.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mlpack/methods/ann/layer/relu6.hpp b/src/mlpack/methods/ann/layer/relu6.hpp index 1a9c0a2ff7..c02d1c0da1 100644 --- a/src/mlpack/methods/ann/layer/relu6.hpp +++ b/src/mlpack/methods/ann/layer/relu6.hpp @@ -84,7 +84,7 @@ class ReLU6 * Serialize the layer. */ template - void serialize(Archive& ar, const uint32_t /* version */); + void serialize(Archive& /* ar */, const uint32_t /* version */); private: //! Locally-stored output parameter object. diff --git a/src/mlpack/methods/ann/layer/relu6_impl.hpp b/src/mlpack/methods/ann/layer/relu6_impl.hpp index d65dfd8998..a9ce66d984 100644 --- a/src/mlpack/methods/ann/layer/relu6_impl.hpp +++ b/src/mlpack/methods/ann/layer/relu6_impl.hpp @@ -65,7 +65,7 @@ void ReLU6::Backward( template template void ReLU6::serialize( - Archive& ar, + Archive& /* ar */, const uint32_t /* version */) { // Nothing to do here.