warn on unused result
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user