From d37126d4f07383fbb620b07beea0e9af35913111 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Del=20Pino?= <stephane.delpino44@gmail.com>
Date: Mon, 16 Sep 2024 18:16:52 +0200
Subject: [PATCH] Fix a sequential only build warning and a too restrictive
 Assert

---
 src/utils/Messenger.cpp            | 2 +-
 src/utils/ReproducibleSumUtils.hpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/utils/Messenger.cpp b/src/utils/Messenger.cpp
index 14891477a..c66102669 100644
--- a/src/utils/Messenger.cpp
+++ b/src/utils/Messenger.cpp
@@ -28,7 +28,7 @@ Messenger::destroy()
   }
 }
 
-Messenger::Messenger([[maybe_unused]] int& argc, [[maybe_unused]] char* argv[], bool parallel_output)
+Messenger::Messenger([[maybe_unused]] int& argc, [[maybe_unused]] char* argv[], [[maybe_unused]] bool parallel_output)
 {
 #ifdef PUGS_HAS_MPI
   MPI_Init(&argc, &argv);
diff --git a/src/utils/ReproducibleSumUtils.hpp b/src/utils/ReproducibleSumUtils.hpp
index f2d52aa20..2ce3d763c 100644
--- a/src/utils/ReproducibleSumUtils.hpp
+++ b/src/utils/ReproducibleSumUtils.hpp
@@ -168,7 +168,7 @@ class ReproducibleScalarSum
   PUGS_INLINE static void
   _update(const DataType& m, Bin& bin) noexcept(NO_ASSERT)
   {
-    Assert(m > 0);
+    Assert(m >= 0);
 
     using namespace reproducible_sum_utils;
     if (m >= std::pow(DataType{2}, W - 1.) * ulp(bin.S[0])) {
-- 
GitLab