From 0b2b77275cab413dd2e418d20be93364e07c05ff Mon Sep 17 00:00:00 2001 From: conrad Date: Wed, 22 Sep 2021 12:03:42 +1000 Subject: [PATCH] add arma_warn_unused attrib --- include/armadillo_bits/BaseCube_bones.hpp | 2 +- include/armadillo_bits/BaseCube_meat.hpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/armadillo_bits/BaseCube_bones.hpp b/include/armadillo_bits/BaseCube_bones.hpp index 3c96e048..5e88a753 100644 --- a/include/armadillo_bits/BaseCube_bones.hpp +++ b/include/armadillo_bits/BaseCube_bones.hpp @@ -24,7 +24,7 @@ template struct BaseCube_eval_Cube { - arma_inline const derived& eval() const; + arma_inline arma_warn_unused const derived& eval() const; }; diff --git a/include/armadillo_bits/BaseCube_meat.hpp b/include/armadillo_bits/BaseCube_meat.hpp index ac90d99d..af7b3c30 100644 --- a/include/armadillo_bits/BaseCube_meat.hpp +++ b/include/armadillo_bits/BaseCube_meat.hpp @@ -417,6 +417,7 @@ BaseCube::has_nan() const template arma_inline +arma_warn_unused const derived& BaseCube_eval_Cube::eval() const {