Skip to content
Snippets Groups Projects

MuonRegionSelector: Fix gcc 11 compilation warning.

Merged Scott Snyder requested to merge ssnyder/athena:gcc11.MuonRegionSelector-20201210 into master
1 file
+ 5
1
Compare changes
  • Side-by-side
  • Inline
@@ -77,7 +77,11 @@ StatusCode MuonRegSelCondAlg::execute(const EventContext& ctx ) const
// write out new new LUT to a file if need be
if ( m_printTable ) dynamic_cast<const RegSelSiLUT*>(rd.get())->write( name()+".map" );
if ( m_printTable ) {
if (auto lut = dynamic_cast<const RegSelSiLUT*>(rd.get())) {
lut->write( name()+".map" );
}
}
/// create the conditions data for storage
Loading