warn on unused result

This commit is contained in:
conrad
2021-09-22 01:09:14 +10:00
parent 0ef22a7d45
commit 9f20635676
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ struct Base_eval_Mat
template<typename elem_type, typename derived>
struct Base_eval_expr
{
arma_inline Mat<elem_type> eval() const; //!< force the immediate evaluation of a delayed expression
inline arma_warn_unused Mat<elem_type> eval() const; //!< force the immediate evaluation of a delayed expression
};
+2 -1
View File
@@ -922,7 +922,8 @@ Base_eval_Mat<elem_type, derived>::eval() const
// extra functions defined in Base_eval_expr
template<typename elem_type, typename derived>
arma_inline
inline
arma_warn_unused
Mat<elem_type>
Base_eval_expr<elem_type, derived>::eval() const
{