IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 69385049 authored by ralfulrich's avatar ralfulrich Committed by Ralf Ulrich
Browse files

compiler warnings

parent 5790b72f
No related branches found
No related tags found
No related merge requests found
...@@ -194,7 +194,12 @@ namespace corsika { ...@@ -194,7 +194,12 @@ namespace corsika {
if (state_ == OutputState::NoInit) { startOfLibrary(); } if (state_ == OutputState::NoInit) { startOfLibrary(); }
// now start the event for all the outputs // now start the event for all the outputs
for (auto& [name, output] : outputs_) { output.get().startOfShower(); } for (auto& [name, output] : outputs_) {
{
[[maybe_unused]] auto const& dummy_name = name;
}
output.get().startOfShower();
}
// increment our shower count // increment our shower count
++count_; ++count_;
...@@ -205,7 +210,12 @@ namespace corsika { ...@@ -205,7 +210,12 @@ namespace corsika {
inline void OutputManager::endOfShower() { inline void OutputManager::endOfShower() {
for (auto& [name, output] : outputs_) { output.get().endOfShower(); } for (auto& [name, output] : outputs_) {
{
[[maybe_unused]] auto const& dummy_name = name;
}
output.get().endOfShower();
}
// switch back to the initialized state // switch back to the initialized state
state_ = OutputState::LibraryReady; state_ = OutputState::LibraryReady;
......
...@@ -57,7 +57,6 @@ namespace corsika::sibyll { ...@@ -57,7 +57,6 @@ namespace corsika::sibyll {
HEPEnergyType getMaxEnergyCoM() const { return maxEnergyCoM_; } HEPEnergyType getMaxEnergyCoM() const { return maxEnergyCoM_; }
default_prng_type& RNG_ = RNGManager::getInstance().getRandomStream("sibyll"); default_prng_type& RNG_ = RNGManager::getInstance().getRandomStream("sibyll");
const bool internalDecays_ = true;
const HEPEnergyType minEnergyCoM_ = 10. * 1e9 * electronvolt; const HEPEnergyType minEnergyCoM_ = 10. * 1e9 * electronvolt;
const HEPEnergyType maxEnergyCoM_ = 1.e6 * 1e9 * electronvolt; const HEPEnergyType maxEnergyCoM_ = 1.e6 * 1e9 * electronvolt;
const int maxTargetMassNumber_ = 18; const int maxTargetMassNumber_ = 18;
......
...@@ -45,7 +45,7 @@ namespace corsika { ...@@ -45,7 +45,7 @@ namespace corsika {
/** /**
* Get the configuration of this output. * Get the configuration of this output.
*/ */
YAML::Node getConfig() const { return YAML::Node(); }; YAML::Node getConfig() const override { return YAML::Node(); };
/** /**
* Get any summary information for the entire library. * Get any summary information for the entire library.
......
...@@ -255,6 +255,7 @@ TEST_CASE("SibyllInterface", "[processes]") { ...@@ -255,6 +255,7 @@ TEST_CASE("SibyllInterface", "[processes]") {
const HEPEnergyType P0 = 1000_EeV; const HEPEnergyType P0 = 1000_EeV;
auto [stack, viewPtr] = setup::testing::setup_stack( auto [stack, viewPtr] = setup::testing::setup_stack(
Code::Proton, 0, 0, P0, (setup::Environment::BaseNodeType* const)nodePtr, cs); Code::Proton, 0, 0, P0, (setup::Environment::BaseNodeType* const)nodePtr, cs);
{ [[maybe_unused]] auto const& dummy1 = stack; }
MomentumVector plab = MomentumVector plab =
MomentumVector(cs, {P0, 0_eV, 0_eV}); // this is secret knowledge about setupStack MomentumVector(cs, {P0, 0_eV, 0_eV}); // this is secret knowledge about setupStack
setup::StackView& view = *viewPtr; setup::StackView& view = *viewPtr;
...@@ -265,10 +266,12 @@ TEST_CASE("SibyllInterface", "[processes]") { ...@@ -265,10 +266,12 @@ TEST_CASE("SibyllInterface", "[processes]") {
SECTION("InteractionInterface - target nucleus out of range") { SECTION("InteractionInterface - target nucleus out of range") {
auto [env1, csPtr1, nodePtr1] = setup::testing::setup_environment(Code::Argon); auto [env1, csPtr1, nodePtr1] = setup::testing::setup_environment(Code::Argon);
{ [[maybe_unused]] auto const& dummy1 = env1; }
auto const& cs1 = *csPtr1; auto const& cs1 = *csPtr1;
const HEPEnergyType P0 = 150_GeV; const HEPEnergyType P0 = 150_GeV;
auto [stack, viewPtr] = setup::testing::setup_stack( auto [stack, viewPtr] = setup::testing::setup_stack(
Code::Electron, 0, 0, P0, (setup::Environment::BaseNodeType* const)nodePtr1, cs1); Code::Electron, 0, 0, P0, (setup::Environment::BaseNodeType* const)nodePtr1, cs1);
{ [[maybe_unused]] auto const& dummy1 = stack; }
MomentumVector plab = MomentumVector( MomentumVector plab = MomentumVector(
cs1, {P0, 0_eV, 0_eV}); // this is secret knowledge about setupStack cs1, {P0, 0_eV, 0_eV}); // this is secret knowledge about setupStack
setup::StackView& view = *viewPtr; setup::StackView& view = *viewPtr;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment