Skip to content

Commit 999fe5c

Browse files
committed
Mark NewtonSolve as nodiscard
Signed-off-by: Carl Pearson <cwpears@sandia.gov>
1 parent 194903a commit 999fe5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ode/impl/KokkosODE_Newton_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace Impl {
3232

3333
template <class system_type, class mat_type, class ini_vec_type, class rhs_vec_type, class update_type,
3434
class scale_type>
35-
KOKKOS_FUNCTION KokkosODE::Experimental::newton_solver_status NewtonSolve(
35+
KOKKOS_ATTRIBUTE_NODISCARD KOKKOS_FUNCTION KokkosODE::Experimental::newton_solver_status NewtonSolve(
3636
system_type& sys, const KokkosODE::Experimental::Newton_params& params, mat_type& J, mat_type& tmp,
3737
ini_vec_type& y0, rhs_vec_type& rhs, update_type& update, const scale_type& scale) {
3838
using newton_solver_status = KokkosODE::Experimental::newton_solver_status;

0 commit comments

Comments
 (0)