-
Notifications
You must be signed in to change notification settings - Fork 260
Description
/tmp/OpenCOLLADA-1.6.68/DAEValidator/library/src/Dae.cpp: In member function ‘virtual void opencollada::Dae::readFile(const std::string&)’:
/tmp/OpenCOLLADA-1.6.68/DAEValidator/library/src/Dae.cpp:79:30: error: possibly dangling reference to a temporary [-Werror=dangling-reference]
79 | const auto & instances = root().selectNodes(
| ^~~~~~~~~
/tmp/OpenCOLLADA-1.6.68/DAEValidator/library/src/Dae.cpp:79:60: note: the temporary was destroyed at the end of the full expression ‘((opencollada::Dae*)this)->opencollada::Dae::.opencollada::XmlDoc::root().opencollada::XmlNode::selectNodes(std::operator+(__cxx11::basic_string<_CharT, _Traits, _Alloc>&&, const __cxx11::basic_string<_CharT, _Traits, _Alloc>&) with _CharT = char; _Traits = char_traits; _Alloc = allocator)’
79 | const auto & instances = root().selectNodes(
| ~~~~~~~~~~~~~~~~~~^
80 | xpath_all + Strings::instance_animation +
gcc 13.1.0