Re: OpenCOLLADA need a little c++ help

2023-05-29 Thread Michael Catanzaro
This is case in point for why you should not use -Werror when building packages. Instead of adding pragmas in various places, I would track down where the -Werror gets added and patch that out instead. (Exception: it does make sense to use -Werror=format-security,

Re: OpenCOLLADA need a little c++ help

2023-05-29 Thread Richard Shaw
On Mon, May 29, 2023 at 8:26 AM Sam Varshavchik wrote: > Richard Shaw writes: > > > error: possibly dangling reference to a temporary [-Werror=dangling- > > reference] > > 315 | const auto & parents = > > dae.root().selectNodes("//*[@sid]/.."); > > The quickest solution is just

Re: OpenCOLLADA need a little c++ help

2023-05-29 Thread Sam Varshavchik
Richard Shaw writes: error: possibly dangling reference to a temporary [-Werror=dangling- reference]   315 |                 const auto & parents = dae.root().selectNodes("//*[@sid]/.."); This is a complaint about a potential problem that might, just might be true. It can't be determined

OpenCOLLADA need a little c++ help

2023-05-29 Thread Richard Shaw
OpenCOLLADA has been failing to build with gcc 13 due to[1]: error: possibly dangling reference to a temporary [-Werror=dangling-reference] 315 | const auto & parents = dae.root().selectNodes("//*[@sid]/.."); The code in question[2] is: // InstanceWithExtra and other with