Skip to content

SystematicsHandles gcc11 warnings

gcc11 emits warnings of the kind

build/atnight/localbuilds/nightlies/master--dev4LCG/athena/PhysicsAnalysis/Algorithms/SystematicsHandles/SystematicsHandles/SysReadHandle.h:107:66: warning: 'this' pointer is null [-Wnonnull]
  107 |     typedef std::decay<decltype(*((EL::AnaAlgorithm*)0)->evtStore())>::type StoreType;

try to fix them by using (std::declval<EL::AnaAlgorithm>().evtStore rather than ((EL::AnaAlgorithm*)0)->evtStore

Mentioning @krumnack

Edited by Christos Anastopoulos

Merge request reports