diff --git a/opm/simulators/utils/readDeck.cpp b/opm/simulators/utils/readDeck.cpp index fea593c4e..a8a846a8a 100644 --- a/opm/simulators/utils/readDeck.cpp +++ b/opm/simulators/utils/readDeck.cpp @@ -218,8 +218,8 @@ namespace { } std::shared_ptr - createEclipseState(Opm::Parallel::Communication comm, - const Opm::Deck& deck) + createEclipseState([[maybe_unused]] Opm::Parallel::Communication comm, + const Opm::Deck& deck) { #if HAVE_MPI return std::make_shared(deck, comm);