This fixes the warnings in x86_64_v2-centos7-gcc11+dd4hep-opt builds.
x86_64_v2-centos7-gcc11+dd4hep-opt
/cc @sponce