add arma_warn_unused attrib

This commit is contained in:
conrad
2021-09-22 12:03:42 +10:00
parent 1f126e0015
commit 0b2b77275c
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -24,7 +24,7 @@
template<typename elem_type, typename derived>
struct BaseCube_eval_Cube
{
arma_inline const derived& eval() const;
arma_inline arma_warn_unused const derived& eval() const;
};
+1
View File
@@ -417,6 +417,7 @@ BaseCube<elem_type,derived>::has_nan() const
template<typename elem_type, typename derived>
arma_inline
arma_warn_unused
const derived&
BaseCube_eval_Cube<elem_type, derived>::eval() const
{