Skip to content
Snippets Groups Projects
Commit 547790a3 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Merge branch 'gcc11.GeoModelXml-20210914' into 'master'

GeoModelXml: Fix compilation with gcc11.

See merge request !46483
parents a3264656 2fdd5a53
No related branches found
No related tags found
8 merge requests!69091Fix correlated smearing bug in JER in JetUncertainties in 22.0,!58791DataQualityConfigurations: Modify L1Calo config for web display,!51674Fixing hotSpotInHIST for Run3 HIST,!50012RecExConfig: Adjust log message levels from GetRunNumber and GetLBNumber,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!46538Draft: Added missing xAOD::TrigConfKeys from DESDM_MCP,!46483GeoModelXml: Fix compilation with gcc11.
......@@ -68,9 +68,11 @@ GeoNameTag *physVolName;
DOMNode *parent = refShape->getParentNode();
if (XMLString::compareIString(parent->getNodeName(), XMLString::transcode("shapes")) != 0) {
char* shape_s = XMLString::transcode (shape);
msglog << MSG::FATAL << "Processing logvol " << name <<
". Error in gmx file. An IDREF for a logvol shape did not refer to a shape.\n" <<
"Shape ref was " << shape << "; exiting" << endmsg;
"Shape ref was " << shape_s << "; exiting" << endmsg;
XMLString::release (&shape_s);
exit (1); // Need to improve...
}
//
......@@ -92,10 +94,12 @@ GeoNameTag *physVolName;
parent = refMaterial->getParentNode();
XMLCh * materials_tmp = XMLString::transcode("materials");
if (XMLString::compareIString(parent->getNodeName(), materials_tmp) != 0) {
char* material_s = XMLString::transcode (material);
msglog << MSG::FATAL << "Processing logvol " << name <<
". Error in gmx file. An IDREF for a logvol material did not refer to a material.\n" <<
"Material ref was " << material << "; exiting" << endmsg;
exit (1); // Need to improve...
"Material ref was " << material_s << "; exiting" << endmsg;
XMLString::release (&material_s);
exit (1); // Need to improve...
}
GeoMaterial *m = (GeoMaterial *) gmxUtil.tagHandler.material.process(refMaterial, gmxUtil);
......
......@@ -31,9 +31,11 @@ const RCBase *MakeShaperef::process(const DOMElement *element, GmxUtil &gmxUtil)
//
DOMNode *parent = shape->getParentNode();
if (XMLString::compareIString(parent->getNodeName(), shapes_tmp) != 0) {
char* idref_s = XMLString::transcode (idref);
OUTPUT_STREAM;
msglog << MSG::FATAL << "Error processing <shaperef> tag: An IDREF for a shape did not refer to a shape.\nShape ref was " <<
idref << "; exiting" << endmsg;
idref_s << "; exiting" << endmsg;
XMLString::release (&idref_s);
exit (1); // Need to improve...
}
//
......
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