diff --git a/corsika/detail/modules/sibyll/InteractionModel.inl b/corsika/detail/modules/sibyll/InteractionModel.inl
index dd00e7606aabf439c677bf2dbaf74b34e1ddab82..2ed0628cb2b7dc1115e68e27609e0b21545d6ae6 100644
--- a/corsika/detail/modules/sibyll/InteractionModel.inl
+++ b/corsika/detail/modules/sibyll/InteractionModel.inl
@@ -171,7 +171,7 @@ namespace corsika::sibyll {
       Ecm_final += psib.getEnergy();
     }
     { // just output
-      HEPEnergyType const Elab_initial =
+      [[ maybe_unused ]] HEPEnergyType const Elab_initial =
           static_pow<2>(sqrtSnn) / (2 * constants::nucleonMass);
       CORSIKA_LOG_DEBUG(
           "conservation (all GeV): "