Skip to content

Fix dangling reference to temporary warning when using gcc >= 13#783

Merged
kris-rowe merged 2 commits intodevelopmentfrom
fix_gcc_13_dangling_reference_to_temporary
Jun 5, 2025
Merged

Fix dangling reference to temporary warning when using gcc >= 13#783
kris-rowe merged 2 commits intodevelopmentfrom
fix_gcc_13_dangling_reference_to_temporary

Conversation

@thilinarmtb
Copy link
Copy Markdown
Collaborator

@thilinarmtb thilinarmtb commented Jun 5, 2025

Avoid using the temporary variables and capture some variables by value in order to avoid a false positive
warning when compiling with gcc >= 13. Latter might have some performance degradation as the captured
variable is of type occa::bitfield. Maybe a different fix is necessary there.

in order to avoid a false positive warning when compiling with
gcc >= 13.
@thilinarmtb thilinarmtb changed the title Fix dangling reference to temporary warning for gcc >= 13 Fix dangling reference to temporary warning when using gcc >= 13 Jun 5, 2025
This is to avoid a false positive warning when compiled with gcc >= 13.
@thilinarmtb thilinarmtb force-pushed the fix_gcc_13_dangling_reference_to_temporary branch from 115c575 to 65b5acb Compare June 5, 2025 04:28
@kris-rowe kris-rowe merged commit bc47c73 into development Jun 5, 2025
4 checks passed
@thilinarmtb thilinarmtb deleted the fix_gcc_13_dangling_reference_to_temporary branch June 5, 2025 20:50
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.

2 participants