From 808719b54f9256acaf985aa9da2dcf157149399c Mon Sep 17 00:00:00 2001 From: ckegel <57967583+CKegel@users.noreply.github.com> Date: Tue, 3 Dec 2024 12:44:44 -0500 Subject: [PATCH] Return result() in transform_reduce function to resolve non-void function return warning. --- src/Omega_h_reduce.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Omega_h_reduce.hpp b/src/Omega_h_reduce.hpp index 1001e5d33..ce4b6faf3 100644 --- a/src/Omega_h_reduce.hpp +++ b/src/Omega_h_reduce.hpp @@ -47,6 +47,7 @@ Result transform_reduce( Iterator first, Iterator last, Result init, Op op, Tranform transform) { fprintf(stderr, "transform_reduce wrapper. We shouldn't be here... exiting\n"); OMEGA_H_CHECK(false); + return Result(); } #elif defined(OMEGA_H_USE_CUDA)