Skip to content
Snippets Groups Projects
Commit 065fa86e authored by Adam Edward Barton's avatar Adam Edward Barton
Browse files

Merge branch 'ubsan.DataQualityInterfaces-20200928' into 'master'

DataQualityInterfaces: Fix ubsan warnings.

See merge request atlas/athena!36776
parents 105ad0ad 0e26f0bb
No related branches found
No related tags found
No related merge requests found
...@@ -47,7 +47,7 @@ atlas_add_executable( han ...@@ -47,7 +47,7 @@ atlas_add_executable( han
atlas_add_executable( han-config-gen atlas_add_executable( han-config-gen
src/han_config_gen.cxx src/han_config_gen.cxx
LINK_LIBRARIES DataQualityInterfaces ) LINK_LIBRARIES DataQualityInterfaces CxxUtils )
atlas_add_executable( han-config-print atlas_add_executable( han-config-print
src/han_config_print.cxx src/han_config_print.cxx
......
...@@ -13,6 +13,9 @@ ...@@ -13,6 +13,9 @@
#include "DataQualityInterfaces/HanConfig.h" #include "DataQualityInterfaces/HanConfig.h"
#include "DataQualityInterfaces/ConditionsSingleton.h" #include "DataQualityInterfaces/ConditionsSingleton.h"
#include "CxxUtils/ubsan_suppress.h"
#include "TInterpreter.h"
namespace { namespace {
void usage( const std::string& command_name, int exit_code ); void usage( const std::string& command_name, int exit_code );
...@@ -36,6 +39,8 @@ public: ...@@ -36,6 +39,8 @@ public:
int main( int argc, char *argv[] ) int main( int argc, char *argv[] )
{ {
CxxUtils::ubsan_suppress ([]() { TInterpreter::Instance(); });
CmdLineArgs arg( argc, argv ); CmdLineArgs arg( argc, argv );
std::string infileName( arg.mconfig ); std::string infileName( arg.mconfig );
......
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