Skip to content

Add GCC 14 compatibility - #1552

Open
murraystevenson wants to merge 4 commits into
ImageEngine:RB-10.7from
murraystevenson:gcc14
Open

Add GCC 14 compatibility#1552
murraystevenson wants to merge 4 commits into
ImageEngine:RB-10.7from
murraystevenson:gcc14

Conversation

@murraystevenson

Copy link
Copy Markdown
Collaborator

These are the few small changes I've needed to build Cortex with GCC 14.2.1.

This reverts 814f9d2 as GCC 14 now reports these as redundant with `-Werror=redundant-move`, and modern Xcode is no longer bothered.
This silences GCC 14's grumble that this is possibly a dangling reference to a temporary...

```
src/IECoreScene/bindings/ShaderNetworkBinding.cpp:60:31: error: possibly dangling reference to a temporary [-Werror=dangling-reference]
   60 |                 const Shader &shader = extract<const Shader &>( items[i][1] )();
      |                               ^~~~~~
src/IECoreScene/bindings/ShaderNetworkBinding.cpp:60:78: note: the temporary was destroyed at the end of the full expression 'boost::python::extract<const IECoreScene::Shader&>(boost::python::api::proxy<Policies>::operator boost::python::api::object() const [with Policies = boost::python::api::item_policies]()).boost::python::extract<const IECoreScene::Shader&>::boost::python::converter::extract_reference<const IECoreScene::Shader&>.boost::python::converter::extract_reference<const IECoreScene::Shader&>::operator()()'
   60 |                 const Shader &shader = extract<const Shader &>( items[i][1] )();
      |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
```
@murraystevenson murraystevenson self-assigned this Aug 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant