Skip to content
Snippets Groups Projects
Commit 5099a224 authored by Edward Moyse's avatar Edward Moyse
Browse files

Merge branch 'gcc11.AthAllocators-20201207' into 'master'

AthAllocators: Fix gcc11 warning.

See merge request atlas/athena!38946
parents a2c18762 dae3057f
No related branches found
No related tags found
No related merge requests found
/* /*
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/ */
// $Id: ArenaHandleBaseAllocT.icc 470529 2011-11-24 23:54:22Z ssnyder $
/** /**
* @file AthAllocators/ArenaHandleBaseAllocT.icc * @file AthAllocators/ArenaHandleBaseAllocT.icc
* @author scott snyder * @author scott snyder
...@@ -107,7 +105,9 @@ template <typename ALLOC> ...@@ -107,7 +105,9 @@ template <typename ALLOC>
const typename ALLOC::Params& const typename ALLOC::Params&
ArenaHandleBaseAllocT<ALLOC>::params() const ArenaHandleBaseAllocT<ALLOC>::params() const
{ {
return dynamic_cast<const ALLOC*>(this->baseAllocator())->params(); const ALLOC* alloc = dynamic_cast<const ALLOC*>(this->baseAllocator());
if (!alloc) std::abort();
return alloc->params();
} }
......
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