Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work around a warning in GCC 13 #3852

Merged
merged 1 commit into from
Dec 22, 2023

Conversation

reneme
Copy link
Collaborator

@reneme reneme commented Dec 22, 2023

... which claims that the replaced code creates a 'possibly dangling reference'. I'm quite sure that this warning is a false positive but let's be safe.

At least in Godbolt that seems to be fine with GCC 13.

Closes #3851.

... which claims that the replaced code creates a 'possibly dangling reference'.
I'm quite sure that this warning is a false positive but let's be safe.
@reneme reneme requested a review from randombit December 22, 2023 10:04
@coveralls
Copy link

Coverage Status

coverage: 92.068% (+0.009%) from 92.059%
when pulling df92d38 on Rohde-Schwarz:fix/gcc_warning
into ca992bd on randombit:master.

Copy link
Owner

@randombit randombit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@reneme reneme merged commit 3ff4753 into randombit:master Dec 22, 2023
39 checks passed
@reneme reneme deleted the fix/gcc_warning branch December 22, 2023 13:51
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.

Dangling reference warning with GCC 13
3 participants