From 8b820166778167cea932c8e19944553e2da43055 Mon Sep 17 00:00:00 2001
From: ralfulrich <ralf.ulrich@kit.edu>
Date: Mon, 25 Jan 2021 07:21:56 +0100
Subject: [PATCH] fixed warning

---
 corsika/detail/modules/sibyll/NuclearInteraction.inl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/corsika/detail/modules/sibyll/NuclearInteraction.inl b/corsika/detail/modules/sibyll/NuclearInteraction.inl
index 4470ea28a..52296fbd4 100644
--- a/corsika/detail/modules/sibyll/NuclearInteraction.inl
+++ b/corsika/detail/modules/sibyll/NuclearInteraction.inl
@@ -240,7 +240,7 @@ namespace corsika::sibyll {
     pTotLab += pTarget;
     auto const pTotLabNorm = pTotLab.getNorm();
     // calculate cm. energy
-    HEPEnergyType const ECoM = sqrt(
+    [[maybe_unused]] HEPEnergyType const ECoM = sqrt(
         (Elab + pTotLabNorm) * (Elab - pTotLabNorm)); // binomial for numerical accuracy
     auto const ECoMNN = sqrt(2. * ElabNuc * constants::nucleonMass);
     CORSIKA_LOG_DEBUG(
-- 
GitLab