diff --git a/src/mlpack/core/cereal/template_class_version.hpp b/src/mlpack/core/cereal/template_class_version.hpp index ea9e508964..bb68af0705 100644 --- a/src/mlpack/core/cereal/template_class_version.hpp +++ b/src/mlpack/core/cereal/template_class_version.hpp @@ -63,7 +63,7 @@ struct Version \ return CEREAL_UNPACK VERSION_NUMBER; \ } \ \ - CEREAL_UNUSED_FUNCTION \ + static void unused() { (void) version; } \ }; /* end Version */ \ \ template \