From 63f6f1b80cea002b7bca641dc8c3971b85a0fc9b Mon Sep 17 00:00:00 2001 From: ralfulrich <ralf.ulrich@kit.edu> Date: Sun, 27 Jan 2019 17:30:41 +0100 Subject: [PATCH] avoid compiler warning, the stupid way --- Processes/Sibyll/Interaction.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Processes/Sibyll/Interaction.h b/Processes/Sibyll/Interaction.h index 288e724f..345d3aa7 100644 --- a/Processes/Sibyll/Interaction.h +++ b/Processes/Sibyll/Interaction.h @@ -153,7 +153,7 @@ namespace corsika::process::sibyll { << weightedProdCrossSection / 1_mbarn << endl; // calculate interaction length in medium -#warning check interaction length units + //#warning check interaction length units GrammageType const int_length = avgTargetMassNumber * corsika::units::constants::u / weightedProdCrossSection; std::cout << "Interaction: " @@ -254,14 +254,16 @@ namespace corsika::process::sibyll { Here we read the cross section from the interaction model again, should be passed from GetInteractionLength if possible */ -#warning reading interaction cross section again, should not be necessary + //#warning reading interaction cross section again, should not be necessary auto const& compVec = mediumComposition.GetComponents(); std::vector<si::CrossSectionType> cross_section_of_components(compVec.size()); for (size_t i = 0; i < compVec.size(); ++i) { auto const targetId = compVec[i]; - const auto [sigProd, nNuc] = GetCrossSection(corsikaBeamId, targetId, Ecm); + const auto [sigProd, nNuc] = GetCrossSection(corsikaBeamId, targetId, Ecm); cross_section_of_components[i] = sigProd; + int ideleteme = nNuc; // to avoid not used warning in array binding + ideleteme = ideleteme; // to avoid not used warning in array binding } const auto targetCode = currentNode->GetModelProperties().SampleTarget( -- GitLab