add arma_warn_unused attrib

This commit is contained in:
conrad
2021-09-22 11:39:45 +10:00
parent 4e68fc568e
commit 950f5cb67b
2 changed files with 6 additions and 3 deletions
+3 -3
View File
@@ -54,9 +54,9 @@ struct SpBase
arma_inline bool is_alias(const SpMat<elem_type>& X) const;
inline const SpOp<derived,spop_htrans> t() const; //!< Hermitian transpose
inline const SpOp<derived,spop_htrans> ht() const; //!< Hermitian transpose
inline const SpOp<derived,spop_strans> st() const; //!< simple transpose
inline arma_warn_unused const SpOp<derived,spop_htrans> t() const; //!< Hermitian transpose
inline arma_warn_unused const SpOp<derived,spop_htrans> ht() const; //!< Hermitian transpose
inline arma_warn_unused const SpOp<derived,spop_strans> st() const; //!< simple transpose
arma_cold inline void print( const std::string extra_text = "") const;
arma_cold inline void print(std::ostream& user_stream, const std::string extra_text = "") const;
+3
View File
@@ -43,6 +43,7 @@ SpBase<elem_type,derived>::is_alias(const SpMat<elem_type>& X) const
template<typename elem_type, typename derived>
inline
arma_warn_unused
const SpOp<derived, spop_htrans>
SpBase<elem_type,derived>::t() const
{
@@ -52,6 +53,7 @@ SpBase<elem_type,derived>::t() const
template<typename elem_type, typename derived>
inline
arma_warn_unused
const SpOp<derived, spop_htrans>
SpBase<elem_type,derived>::ht() const
{
@@ -62,6 +64,7 @@ SpBase<elem_type,derived>::ht() const
template<typename elem_type, typename derived>
inline
arma_warn_unused
const SpOp<derived, spop_strans>
SpBase<elem_type,derived>::st() const
{