From 076af557749e5ef737259dc004131d40f5a16237 Mon Sep 17 00:00:00 2001 From: scott snyder <snyder@bnl.gov> Date: Fri, 5 Oct 2018 22:38:34 +0200 Subject: [PATCH] Pythia8_i: Fix gcc8 warnings. gcc8 warnings: Catching polymorphic exceptions by value. --- Generators/Pythia8_i/src/Pythia8_i.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Generators/Pythia8_i/src/Pythia8_i.cxx b/Generators/Pythia8_i/src/Pythia8_i.cxx index a87462771e3..3c6c1d18029 100644 --- a/Generators/Pythia8_i/src/Pythia8_i.cxx +++ b/Generators/Pythia8_i/src/Pythia8_i.cxx @@ -134,7 +134,7 @@ StatusCode Pythia8_i::genInitialize() { } } - }catch(Pythia8_i::CommandException err){ + }catch(const Pythia8_i::CommandException& err){ ATH_MSG_ERROR(err.what()); return StatusCode::FAILURE; } @@ -184,7 +184,7 @@ StatusCode Pythia8_i::genInitialize() { return StatusCode::FAILURE; } } - }catch(CommandException err){ + }catch(const CommandException& err){ ATH_MSG_ERROR(err.what()); return StatusCode::FAILURE; } -- GitLab