possibly dangling reference to a temporary
/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::
I've been seeing this on Fedora as well. Unfortunately there has been no activity upstream for some time. I'm concerned I'll have to remove OpenCOLLADA from Fedora.
I got some tips from the Fedora devel list and at least got it compiling. It just ignores the errors but that code hasn't change in ages and I don't have the knowledge to fix it properly.
https://src.fedoraproject.org/rpms/openCOLLADA/blob/rawhide/f/openCOLLADA-pragma.patch
I used -Wno-error=dangling-reference for now. But would be nice to see it fixed :)
Already had the missing includes