IAP GITLAB

Skip to content
Snippets Groups Projects
Commit d7e2cc0e authored by ralfulrich's avatar ralfulrich
Browse files

fix urqmd warnings

parent b0468683
No related tags found
No related merge requests found
...@@ -140,6 +140,7 @@ TEST_CASE("UrQMD") { ...@@ -140,6 +140,7 @@ TEST_CASE("UrQMD") {
SECTION("cross sections") { SECTION("cross sections") {
auto [env, csPtr, nodePtr] = setupEnvironment(particles::Code::Unknown); auto [env, csPtr, nodePtr] = setupEnvironment(particles::Code::Unknown);
[[maybe_unused]] const auto& env_dum = env;
auto const& cs = *csPtr; auto const& cs = *csPtr;
particles::Code validProjectileCodes[] = { particles::Code validProjectileCodes[] = {
...@@ -169,9 +170,11 @@ TEST_CASE("UrQMD") { ...@@ -169,9 +170,11 @@ TEST_CASE("UrQMD") {
SECTION("nucleon projectile") { SECTION("nucleon projectile") {
auto [env, csPtr, nodePtr] = setupEnvironment(particles::Code::Oxygen); auto [env, csPtr, nodePtr] = setupEnvironment(particles::Code::Oxygen);
[[maybe_unused]] const auto& env_dum = env;
unsigned short constexpr A = 14, Z = 7; unsigned short constexpr A = 14, Z = 7;
auto [stackPtr, secViewPtr] = setupStack(A, Z, 400_GeV, nodePtr, *csPtr); auto [stackPtr, secViewPtr] = setupStack(A, Z, 400_GeV, nodePtr, *csPtr);
[[maybe_unused]] const auto& stackPtr_dump = stackPtr;
// must be assigned to variable, cannot be used as rvalue?! // must be assigned to variable, cannot be used as rvalue?!
auto projectile = secViewPtr->GetProjectile(); auto projectile = secViewPtr->GetProjectile();
auto const projectileMomentum = projectile.GetMomentum(); auto const projectileMomentum = projectile.GetMomentum();
...@@ -188,8 +191,10 @@ TEST_CASE("UrQMD") { ...@@ -188,8 +191,10 @@ TEST_CASE("UrQMD") {
SECTION("\"special\" projectile") { SECTION("\"special\" projectile") {
auto [env, csPtr, nodePtr] = setupEnvironment(particles::Code::Oxygen); auto [env, csPtr, nodePtr] = setupEnvironment(particles::Code::Oxygen);
[[maybe_unused]] const auto& env_dum = env;
auto [stackPtr, secViewPtr] = auto [stackPtr, secViewPtr] =
setupStack(particles::Code::PiPlus, 400_GeV, nodePtr, *csPtr); setupStack(particles::Code::PiPlus, 400_GeV, nodePtr, *csPtr);
[[maybe_unused]] const auto& stackPtr_dump = stackPtr;
// must be assigned to variable, cannot be used as rvalue?! // must be assigned to variable, cannot be used as rvalue?!
auto projectile = secViewPtr->GetProjectile(); auto projectile = secViewPtr->GetProjectile();
......
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