From 07206237893b4d11781bd2df13e1d9a50b88252c Mon Sep 17 00:00:00 2001 From: Alan Coleman <alanc@udel.edu> Date: Thu, 15 Jun 2023 14:57:34 +0200 Subject: [PATCH] Reduced from warn to debug for the large gyroradius, also reduced other test compiler warnings --- corsika/detail/modules/tracking/TrackingLeapFrogCurved.inl | 2 +- tests/framework/testCascade.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/corsika/detail/modules/tracking/TrackingLeapFrogCurved.inl b/corsika/detail/modules/tracking/TrackingLeapFrogCurved.inl index b7b288dd2..d99c779c0 100644 --- a/corsika/detail/modules/tracking/TrackingLeapFrogCurved.inl +++ b/corsika/detail/modules/tracking/TrackingLeapFrogCurved.inl @@ -81,7 +81,7 @@ namespace corsika { if (gyroradius > 1e9_m) { // this cannot be really unit-tested. It is hidden. LCOV_EXCL_START - CORSIKA_LOG_WARN( + CORSIKA_LOG_DEBUG( "CurvedLeapFrog is not very stable for extremely high gyroradius steps. " "Rg={} -> straight tracking.", gyroradius); diff --git a/tests/framework/testCascade.cpp b/tests/framework/testCascade.cpp index 482e68455..c6aff27cf 100644 --- a/tests/framework/testCascade.cpp +++ b/tests/framework/testCascade.cpp @@ -153,7 +153,8 @@ public: } template <typename TView> - void doInteraction(TView& view, Code, Code, FourMomentum const&, FourMomentum const&) { + void doInteraction([[maybe_unused]] TView& view, Code, Code, FourMomentum const&, + FourMomentum const&) { FAIL("doInteraction of ProcessZero has been called! This should never happen."); } }; @@ -166,7 +167,7 @@ public: : maxCalls_(maxCalls){}; template <typename D> - ProcessReturn doContinuous(Step<D>& d, bool flag) { + ProcessReturn doContinuous([[maybe_unused]] Step<D>& d, [[maybe_unused]] bool flag) { if (++calls_ == maxCalls_) return ProcessReturn::ParticleAbsorbed; return ProcessReturn::Ok; } -- GitLab