add arma_warn_unused attrib
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user