From cfd720e1fcd6efff11b06e571a18bf85677db210 Mon Sep 17 00:00:00 2001 From: Stan Gerald Moore Date: Mon, 31 Jan 2022 09:58:44 -0700 Subject: [PATCH] Remove another volatile return type to avoid warning --- src/KOKKOS/fix_langevin_kokkos.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/KOKKOS/fix_langevin_kokkos.h b/src/KOKKOS/fix_langevin_kokkos.h index 3bb076b561..96b61532e6 100644 --- a/src/KOKKOS/fix_langevin_kokkos.h +++ b/src/KOKKOS/fix_langevin_kokkos.h @@ -45,11 +45,10 @@ namespace LAMMPS_NS { } KOKKOS_INLINE_FUNCTION - volatile s_FSUM& operator+=(const volatile s_FSUM &rhs) volatile { + void operator+=(const volatile s_FSUM &rhs) volatile { fx += rhs.fx; fy += rhs.fy; fz += rhs.fz; - return *this; } }; typedef s_FSUM FSUM;