Skip to content
Snippets Groups Projects
Commit b43c12ba authored by James Beacham's avatar James Beacham
Browse files

Merge branch 'ubsan210.InDetEventAthenaPool-20180514' into '21.0'

InDetEventAthenaPool: Suppress undefined behavior sanitizer warnings.

See merge request atlas/athena!11268

Former-commit-id: c9aad7f581ff81f12f34ef5fdb10c5fc673faac2
parents 0e925dd0 28a5c613
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@ atlas_depends_on_subdirs(
Generators/GeneratorObjectsTPCnv
PRIVATE
AtlasTest/TestTools
Control/CxxUtils
Control/AthContainers
Control/AthenaBaseComps
Control/AthenaKernel
......
......@@ -12,6 +12,7 @@
#include "AthenaBaseComps/AthMessaging.h"
#include "GaudiKernel/MsgStream.h"
#include "CxxUtils/no_sanitize_undefined.h"
namespace IDEvtAthPool {
//Small slightly dirty workaround so we can set the source name on the
......@@ -20,7 +21,7 @@ namespace IDEvtAthPool {
public:
void setSource(const char*c) { if (m_source!=c) m_source=c; }
};
inline void setMsgName(AthMessaging*a,const char*c) {
inline void setMsgName NO_SANITIZE_UNDEFINED (AthMessaging*a,const char*c) {
if (a&&c) static_cast<MsgStreamSourceSettable*>(&(a->msg()))->setSource(c);
}
}
......
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