From c4c90a96ec35cfd1983f4f00757f32cd6456013d Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 12 Nov 2018 20:49:01 -0500 Subject: [PATCH] avoid void return from non-void function --- src/REPLICA/fix_hyper_global.cpp | 2 ++ src/REPLICA/fix_hyper_local.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/REPLICA/fix_hyper_global.cpp b/src/REPLICA/fix_hyper_global.cpp index 980dd6aff1..14038cd6d2 100644 --- a/src/REPLICA/fix_hyper_global.cpp +++ b/src/REPLICA/fix_hyper_global.cpp @@ -467,6 +467,8 @@ double FixHyperGlobal::compute_vector(int i) if (i == 8) return t_hyper; if (i == 9) return (double) nevent; if (i == 10) return (double) nevent_atom; + + return 0.0; } /* ---------------------------------------------------------------------- diff --git a/src/REPLICA/fix_hyper_local.cpp b/src/REPLICA/fix_hyper_local.cpp index 0c871d778a..8d198e404d 100644 --- a/src/REPLICA/fix_hyper_local.cpp +++ b/src/REPLICA/fix_hyper_local.cpp @@ -1378,6 +1378,8 @@ double FixHyperLocal::compute_vector(int i) MPI_Allreduce(&nnewbond,&allnew,1,MPI_INT,MPI_SUM,world); return (double) 0.5*allnew; } + + return 0.0; } /* ----------------------------------------------------------------------