From 8c2cb50569bcbbb849a2f93b432b79bc828cbc69 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Fri, 28 Jun 2019 13:28:41 +0200 Subject: [PATCH] added: OPM_UNUSED_NOMPI for suppressing unused variable warnings when a variable is unused if compiled without MPI --- opm/material/common/Unused.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/opm/material/common/Unused.hpp b/opm/material/common/Unused.hpp index 03cb52974..f7c4bf143 100644 --- a/opm/material/common/Unused.hpp +++ b/opm/material/common/Unused.hpp @@ -40,4 +40,10 @@ #define OPM_OPTIM_UNUSED #endif +#ifdef HAVE_MPI +#define OPM_UNUSED_NOMPI +#else +#define OPM_UNUSED_NOMPI OPM_UNUSED +#endif + #endif