diff --git a/src/mlpack/core/cereal/template_class_version.hpp b/src/mlpack/core/cereal/template_class_version.hpp index 6789de5e39..ea9e508964 100644 --- a/src/mlpack/core/cereal/template_class_version.hpp +++ b/src/mlpack/core/cereal/template_class_version.hpp @@ -39,7 +39,7 @@ struct Version \ \ static inline const std::uint32_t version = registerVersion(); \ \ - CEREAL_UNUSED_FUNCTION \ + static void unused() { (void) version; } \ }; /* end Version */ \ \ } \